In M2IO.Setpin_12VIO(X,ON) X is not Pin number, but channel number
dme8a8 opened this issue · comments
dme8a8 commented
In M2IO.Setpin_12VIO(X,ON) X is not Pin number, but channel number. That should be documented somewhere!
Also M2IO.Setpin_12VIO(1, ON, SOURCE, PWM_PIN, 1000, 5); gives a measured duty cycle of 8%, so the accuracy could maybe be improved! :-)
Otherwise nice library!!
Tony Doust commented
X refers to one of the M2 GPIO output pins 1-6
so M2IO.Setpin_12VIO(1,ON) set GPIO output 1 On
dme8a8 commented
Should be documented on the main page! Took me ages of reading the src to find that out
… 12 feb. 2019 kl. 08:59 skrev Tony Doust ***@***.***>:
X refers to one of the M2 GPIO output pins 1-6
so M2IO.Setpin_12VIO(1,ON) set GPIO output 1 On
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.