Advertisement
cvalente

write to leds with debug

May 25th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. void write_to_leds(){
  2.     // writes values to PWM digital
  3.     // LEDS have opposite direction to inputs
  4.     Serial.println("Writing to PWM outputs inputs...");
  5.     for (int i = 0; i < NUM_LIGHTS; i++) {
  6.         analogWrite(digitalOutputsPWM[i], values[i]);
  7.         Serial.print(i);
  8.         Serial.print(": ");
  9.         Serial.println(values[i]);
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement