Open Up the Arduino IDE software on your computer. Coding in the Arduino
language will control your circuit. Open the code for Circuit 1 by accessing the “SIK
Guide Code” you downloaded and placed into your “Examples” folder earlier.
Open Your First Sketch:
File
Edit Sketch Tools
Help
1.Basics
2.Digital
3.Analog
4.Communication
5.Control
6.Sensors
7.Displays
8.Strings
ArduinoISP
SIK Guide Code
EEPROM
Ethernet
Firmata
Liquid Crystal
SD
Servo
SoftwareSerial
SPI
Stepper
Wire
Page Setup
New
Open...
Sketchbook
Examples
Close
Save
Save As...
Upload
Upload Using Progammer
Circuit #1
Circuit #2
Circuit #3
Circuit #4
Circuit #5
Circuit #6
Circuit #7
Circuit #8
Circuit #9
Circuit #10
Circuit #11
Circuit #12
Circuit #13
Circuit #14
Circuit #15
Circuit #16
Circuit #1
/*
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
}
// Circuit #1
Page 22
Содержание RedBoard
Страница 13: ...Page 11...