Open fire-bot opened 3 months ago
The additional line in mySetup.h is only needed for LEDs connected to PCA9685. LEDs connected to other pins/VPins will require a resistor to limit current.
https://dcc-ex.com/reference/hardware/servo-module.html#using-a-servo-module-for-leds
in mySetup.h IODevice::configureServo(112,2437,0,PCA9685::NoPowerOff); and upload the sketch
You can use commands from the serial monitor to test. <z 112> <z -112>
Sent by Umberto Bianchi (umbianchi@gmail.com). Created by fire.
Good morning,
I started using DCC-EX command station with Arduino mega 2560 + arduino motor shield + PCA 9685.
I would like to test 1 servo and 1 green LED to be able to manage 1 TURNOUT, using Arduino serial monitor.
I know the command for the servo
<D SERVO 100 105> but I haven't found any examples for using with the LED.
any help is welcome.
Thanks in advance
Umberto Bianchi
my email is: umbianchi@gmail.com