ESP8266 part of the f105-motor-demo project (see f105-motor-demo_stm32)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
551 B

/** Wifi page */
var page_home = (function () {
var home = {};
/** Set up the Home page */
home.init = function () {
$('#btn-fwd').on('mousedown', function() {
console.log('FWD down');
$().get(_root+'/m/start?dir=f');
}).on('mouseup', function() {
console.log('FWD up');
$().get(_root+'/m/stop');
});
$('#btn-rev').on('mousedown', function() {
console.log('REV down');
$().get(_root+'/m/start?dir=r');
}).on('mouseup', function() {
console.log('REV up');
$().get(_root+'/m/stop');
});
};
return home;
})();