Hardware components | ||||||
| × | 1 | ||||
| × | 3 | ||||
| × | 4 | ||||
| × | 8 | ||||
| × | 1 | ||||
| × | 9 | ||||
Software apps and online services | ||||||
|
Having trouble getting organized? Difficulty turning in your work on time?
I suggest you create a timer based on the "pomodoro" method and gain in efficiency.
#pomodoro #timer #work
// C++ code
//
void setup()
{
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
}
void loop()
{
digitalWrite(2, HIGH);
delay(1500000); // Wait for 1500000 millisecond(s)
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(300000); // Wait for 300000 millisecond(s)
digitalWrite(3, LOW);
digitalWrite(4, HIGH);
delay(1500000); // Wait for 1500000 millisecond(s)
digitalWrite(4, LOW);
digitalWrite(5, HIGH);
delay(300000); // Wait for 300000 millisecond(s)
digitalWrite(5, LOW);
digitalWrite(6, HIGH);
delay(1500000); // Wait for 1500000 millisecond(s)
digitalWrite(6, LOW);
digitalWrite(7, HIGH);
delay(300000); // Wait for 300000 millisecond(s)
digitalWrite(7, LOW);
digitalWrite(8, HIGH);
delay(1500000); // Wait for 1500000 millisecond(s)
digitalWrite(8, LOW);
digitalWrite(9, HIGH);
delay(1800000); // Wait for 1800000 millisecond(s)
digitalWrite(9, LOW);
}
// C++ code
//
int LED_R1 = 0;
int LED_V2 = 0;
int LED_R2 = 0;
int LED_V1 = 0;
int LED_R3 = 0;
int LED_V3 = 0;
int interrupteur = 0;
void setup()
{
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
}
void loop()
{
digitalWrite(2, HIGH);
delay(2000); // Wait for 2000 millisecond(s)
digitalWrite(2, LOW);
digitalWrite(3, HIGH);
delay(2000); // Wait for 2000 millisecond(s)
digitalWrite(3, LOW);
digitalWrite(4, HIGH);
delay(2000); // Wait for 2000 millisecond(s)
digitalWrite(4, LOW);
digitalWrite(5, HIGH);
delay(2000); // Wait for 2000 millisecond(s)
digitalWrite(5, LOW);
digitalWrite(6, HIGH);
delay(2000); // Wait for 2000 millisecond(s)
digitalWrite(6, LOW);
digitalWrite(7, HIGH);
delay(2000); // Wait for 2000 millisecond(s)
digitalWrite(7, LOW);
digitalWrite(8, HIGH);
delay(2000); // Wait for 2000 millisecond(s)
digitalWrite(8, LOW);
digitalWrite(9, HIGH);
delay(5000); // Wait for 5000 millisecond(s)
digitalWrite(9, LOW);
}
Comments