www.cutedigi.com     Call Us:  303-834-7832    Email Us:  sales at cutedigi.com

Live Help
Quick Find:    
Search
    
Use keywords to find the product you are looking for.
Categories
.NET Micro Frameworks
Arduino
Arduino Kits
Arduino Shields
Breakout Board
Cables
Cellular
Component
Development Tools
DMX512
Ethernet
FPGA
GPS
LCD
Lighting LED
Powerline Communication
Programmer/Emulator
Project Case
Prototyping
Python-On-A-Chip
Robotics
Security and Spy Camera
Sensor
Services
Storage
Tools
Tracking
Video
Wireless
Featured more
TL-WR703N Clone With OPENWRT, USB Camera Support, TTL UART
TL-WR703N Clone With OPENWRT, USB Camera Support, TTL UART
 $34.99 - $39.99 
Specials more
IOIO for Android
IOIO for Android
 $44.90  $35.99 
LS6410 SAMSUNG ARM11 S3C6410 board kit 7" TFT LCD (Android)
LS6410 SAMSUNG ARM11 S3C6410 board kit 7" TFT LCD (Android)
 $289.00  $269.00 
USB to SPI adaptor
USB to SPI adaptor
 $29.99  $24.99 
WiFi  RedBack 1.0 -- Arduino  yellowjacket Compatible
WiFi RedBack 1.0 -- Arduino yellowjacket Compatible
 $75.00  $64.99 
Quad-band GPRS/GSM Shield for Arduino (Cellular Module Included)
Quad-band GPRS/GSM Shield for Arduino (Cellular Module Included)
 $79.00  $69.00 
LinkSprite JPEG Color Camera Serial UART Interface (TTL level)
LinkSprite JPEG Color Camera Serial UART Interface (TTL level)
 $44.00  $39.00 
ATWIN Quad-band GPRS/GSM Shield for Arduino
ATWIN Quad-band GPRS/GSM Shield for Arduino
 $49.00  $45.00 
  Top » Catalog » Arduino » Sensor KY008 Arduino Sample Code
Sensor KY008 Arduino Sample Code   by Patrick

 

/*

  Blink

  Turns on an LED on for one second, then off for one second, repeatedly.

 

  This example code is in the public domain.

 */

 

void setup() {                

  // initialize the digital pin as an output.

  // Pin 13 has an LED connected on most Arduino boards:

  pinMode(13, OUTPUT);     

}

 

void loop() {

  digitalWrite(13, HIGH);   // set the LED on

  delay(1000);              // wait for a second

  digitalWrite(13, LOW);    // set the LED off

  delay(1000);              // wait for a second

}


 

This article was published on Monday 09 January, 2012.
Current Reviews: 0  Write Review 
Tell a friend
Tell a friend about this article:     
Shopping Cart more
0 items
Articles
New Articles (0)
All Articles (82)
Android
Arduino (30)
DMX512 (1)
FPPA (3)
GPS (6)
Industry News (5)
Linux Port Tutorial TQ2440 (24)
MCU Zone (4)
Multitouch Display (2)
PCB/SMT Assembly Service (2)
Sensors (1)
Smart Home (4)
Affiliate Program
Affiliate Program FAQ
Affiliate Log In
Cards Accepted
Cards We Accept