TDoust / M2_12VIO

Macchina M2 12VIO Library for use with the Macchina M2 OBDII Hardware

Home Page:https://github.com/TDoust/M2_12VIO

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In M2IO.Setpin_12VIO(X,ON) X is not Pin number, but channel number

dme8a8 opened this issue · comments

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!!

X refers to one of the M2 GPIO output pins 1-6
so M2IO.Setpin_12VIO(1,ON) set GPIO output 1 On