_01_blinkingLed.ino 710 B

1234567891011121314151617181920
  1. /***********************************************************
  2. File name: 01_blinkingLed.ino
  3. Description: Lit LED, let LED blinks.
  4. Website: www.adeept.com
  5. E-mail: support@adeept.com
  6. Author: Tom
  7. Date: 2015/05/02
  8. ***********************************************************/
  9. int ledPin=8; //definition digital 8 pins as pin to control the LED
  10. void setup()
  11. {
  12. pinMode(ledPin,OUTPUT); //Set the digital 8 port mode, OUTPUT: Output mode
  13. }
  14. void loop()
  15. {
  16. digitalWrite(ledPin,HIGH); //HIGH is set to about 5V PIN8
  17. delay(1000); //Set the delay time, 1000 = 1S
  18. digitalWrite(ledPin,LOW); //LOW is set to about 5V PIN8
  19. delay(1000); //Set the delay time, 1000 = 1S
  20. }