contact_printer/ino/demos/lamp_TIP120/lamp_TIP120.ino

31 lines
447 B
Arduino
Raw Normal View History

/** ______________
* | |
* | |
* | TIP120 |
* | |
* | |
* --------------
* || || ||
* || || ||
* || || ||
* || || ||
* 2.2K
* |
* |
* \/
* 8 pin
**/
int signalPin = 8;
void setup () {
pinMode(signalPin, OUTPUT);
}
void loop () {
digitalWrite(signalPin, HIGH);
delay(1000);
digitalWrite(signalPin, LOW);
delay(2000);
}