I found a "workaround", not perfect at all, but it sort of does what I want.
moveTo = (deg: number, ms: number = 1000) => { const deg2 = 0.2 + (0.2 - 0.09)/(0.9 - 0.7) * (deg - 0.9); this.servo.move(deg2, ms, () => { analogWrite(this.sId, (deg) / 50.0, { freq: 20, soft: false }); }); }
@TheLogan 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.
I found a "workaround", not perfect at all, but it sort of does what I want.