Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void write_to_leds(){
- // writes values to PWM digital
- // LEDS have opposite direction to inputs
- Serial.println("Writing to PWM outputs inputs...");
- for (int i = 0; i < NUM_LIGHTS; i++) {
- analogWrite(digitalOutputsPWM[i], values[i]);
- Serial.print(i);
- Serial.print(": ");
- Serial.println(values[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement