DCC-EX / EX-IOExpander

Digital and Analogue I/O expander using Arduino AVR
GNU General Public License v3.0
8 stars 5 forks source link

Bug Report: LEDs in output mode are dim #22

Closed peteGSX closed 1 year ago

peteGSX commented 1 year ago

Version

0.0.7/4.2.9pre1

Bug description

When using LED outputs, they are dim.

Using test mode they are bright, but as outputs from EX-RAIL they are dim.

Steps to reproduce the bug

Configure any EX-RAIL sequence to SET() a Vpin on EX-IOExpander, and the LED will turn on but be dim.

Expected behaviour

The behaviour is expected, but the LED should be the same brightness as the test sequence.

Screenshots

No response

Hardware in use

Mega/Nucleo CS Nano/Uno EX-IOExpander

Additional context

This may potentially be due to continuously setting pin mode rather than only setting it once. It also happens with direct connected LEDs and LEDs connected via ULN2003.

peteGSX commented 1 year ago

The issue was not actually setting pinMode(pin, OUTPUT) at all!