New answers tagged

0

Revised Answer: If you have followed the tutorial regarding wiring then the outputs need to be high to turn the LEDs on. The code in the example was correct: // toggle LED states exports.toggle = ( r, g, b ) => { pin_red.writeSync( r ? 1 : 0 ); pin_green.writeSync( g ? 1 : 0 ); pin_blue.writeSync( b ? 1 :0 ); }; Original answer (As this is still ...


Top 50 recent answers are included