Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void loop() {
- // button management section
- myBtn.read(); // read the button
- if (myBtn.wasReleased()) // if the button was released, change the landingmode
- {
- landingMode++;
- if (landingMode > NUM_MODES) { // Handle overflow of modes
- landingMode = 0;
- }
- }
- switch (landingMode) {
- case 0: cd77_police_lights_one_modified_n_dots(2, 4, 60, CRGB::Red); break;
- case 1: cd77_police_lights_one_modified_n_dots(2, 4, 60, CRGB::Blue); break;
- }
- }
Add Comment
Please, Sign In to add comment