Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setup() {
- // put your setup code here, to run once:
- pinMode(13, OUTPUT);
- pinMode(12, OUTPUT);
- pinMode(10, OUTPUT);
- }
- void loop() {
- // put your main code here, to run repeatedly:
- digitalWrite(13,HIGH); // turn the LED on
- delay(1000); // wait for oen second
- digitalWrite(13,LOW); // turn the LED off
- delay(1000); // wait for one second
- analogWrite(12,700); // turn the LED light on
- delay(2000); // wait for 2 seconds
- analogWrite(12,100); // turn the LED off
- delay(2000); // wait for 2 seconds
- digitalWrite(10,HIGH); // turn the LED light on
- delay(1000); // wait for one seconds
- digitalWrite(10,LOW); // turn the LED light off
- delay(1000); // wait for one seconds
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement