| 1234567891011121314151617181920 |
- /***********************************************************
- File name: 01_blinkingLed.ino
- Description: Lit LED, let LED blinks.
- Website: www.adeept.com
- E-mail: support@adeept.com
- Author: Tom
- Date: 2015/05/02
- ***********************************************************/
- int ledPin=8; //definition digital 8 pins as pin to control the LED
- void setup()
- {
- pinMode(ledPin,OUTPUT); //Set the digital 8 port mode, OUTPUT: Output mode
- }
- void loop()
- {
- digitalWrite(ledPin,HIGH); //HIGH is set to about 5V PIN8
- delay(1000); //Set the delay time, 1000 = 1S
- digitalWrite(ledPin,LOW); //LOW is set to about 5V PIN8
- delay(1000); //Set the delay time, 1000 = 1S
- }
|