Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int retardo = 2000;
- int estadoled = 0;
- int pinled=10;
- void setup() {
- Serial.begin(9600);
- pinMode(pinled,OUTPUT);
- }
- void CambiaEstadoLed(){
- estadoled=~estadoled;
- digitalWrite(pinled,estadoled);
- }
- void loop(){
- CambiaEstadoLed();
- delay(retardo);
- }
Add Comment
Please, Sign In to add comment