Traffic light controlled by an ATtiny85, programmed using a USBTinyISP.
Not a member? You should Sign up.
Already have an account? Log in.
To make the experience fit your profile, pick a username and tell us what interests you.
#define LED_VERTE PB0 #define LED_JAUNE PB1 #define LED_ROUGE PB2 void setup() { pinMode(LED_VERTE, OUTPUT); pinMode(LED_JAUNE, OUTPUT); pinMode(LED_ROUGE, OUTPUT); } void loop() { digitalWrite(LED_VERTE, HIGH); digitalWrite(LED_JAUNE, LOW); digitalWrite(LED_ROUGE, LOW); delay(3000); digitalWrite(LED_VERTE, LOW); digitalWrite(LED_JAUNE, HIGH); digitalWrite(LED_ROUGE, LOW); delay(1000); digitalWrite(LED_VERTE, LOW); digitalWrite(LED_JAUNE, LOW); digitalWrite(LED_ROUGE, HIGH); delay(3000); }
View all instructions
Create an account to leave a comment. Already have an account? Log In.
Stanislas Bertrand
Lisa Taylor
Pim Zwager
bobricius
Become a member to follow this project and never miss any updates
Yes, delete it Cancel
You are about to report the project "ATtiny85 traffic light", please tell us the reason.
Your application has been submitted.
Are you sure you want to remove yourself as a member for this project?
Project owner will be notified upon removal.