-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hey Rob,
Thanks for your great library! It really simplifies talking to micro:bit over web-bluetooth.
I cannot find any documentation about accessing IOpin service.
After diggin into console I managed to work out PWM control to operate a servo motor.
let pwm = {
pin: pin, // 0,1,2
value: val, // 50-250
period: 10000 // 10000 microsecconds = 10 millisecconds
}
services.ioPinService.setPwmControl(pwm);
....
Still I am confused how to take analog readings from IO pins. Setting AD and IO configuration with bitmasks is a riddle to me. Could you please provide any code sample how to set:
setIoConfiguration and getAdConfiguration to configure P0 , P1, and P2 for analog readings??
Thank you in advance.
Maciej
Metadata
Metadata
Assignees
Labels
No labels