Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int buttonPin = 2;// the number of the pushbutton pin | |
const int butpin = 3; | |
const int ledpin2 = 9; | |
const int ledPin = 8;// the number of the LED pin | |
const int fadingDelay = 25; // the speed of LED fading (higher value = slower) | |
// variables will change: | |
int butState = 0; | |
int buttonState = 0; // variable for reading the pushbutton status | |
boolean fadingState = false; // determines whether the LED needs to be turned on or off |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.