Thanks I've changed it to javascript
the direction works between the number so grater that 100 but less that 200 set this speed
ie
if (dir_val < 200 && dir_val > 100) { const sendvalue = new Uint8Array([0x08, 0x00, 0x81, 0x00, 0x01, 0x51, 0x00, 0xce]); }
@ThePlayShed started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks I've changed it to javascript
the direction works between the number so grater that 100 but less that 200 set this speed
ie