Home
last modified time | relevance | path

Searched refs:myHBridge_obj (Results 1 – 2 of 2) sorted by relevance

/hardware/bsp/intel/peripheral/libupm/examples/javascript/
Dl298-stepper.js31 var myHBridge_obj = new HBridge_lib.L298(200, 3, 4, 7, 8, 9); variable
36 myHBridge_obj.goForward = function()
38 myHBridge_obj.setSpeed(10); // 10 RPMs
39 myHBridge_obj.setDirection(HBridge_lib.L298.DIR_CW);
40 myHBridge_obj.enable(true);
43 myHBridge_obj.stepperSteps(200);
46 myHBridge_obj.reverseDirection = function()
49 myHBridge_obj.setDirection(HBridge_lib.L298.DIR_CCW);
50 myHBridge_obj.stepperSteps(100);
53 myHBridge_obj.stop = function()
[all …]
Dl298.js32 var myHBridge_obj = new HBridge_lib.L298(3, 4, 7); variable
37 myHBridge_obj.goForward = function()
40 myHBridge_obj.setSpeed(50);
41 myHBridge_obj.setDirection(HBridge_lib.L298.DIR_CW);
42 myHBridge_obj.enable(true);
45 myHBridge_obj.reverseDirection = function()
48 myHBridge_obj.setDirection(HBridge_lib.L298.DIR_NONE); // fast stop
49 myHBridge_obj.setDirection(HBridge_lib.L298.DIR_CCW);
52 myHBridge_obj.stop = function()
54 myHBridge_obj.setSpeed(0);
[all …]