Simple Testing - Sketch Programming - Arduino Development for OSX and iOS (2015)

Arduino Development for OSX and iOS (2015)

2. Sketch Programming

2.3 Simple Testing

Now you're ready to get started. For illustration, I use the sample code from Arduino, Blink. You can visit on http://arduino.cc/en/Tutorial/Blink for configuration. By default, Arduino board has been attached a LED on digital pin 13.

On Arduino software, Click File -> Examples -> 01.Basics -> Blink.

ch2-2

Then you will get a sample code of Blink app.

ch2-3

Now try to connect your Arduino into computer.

chp2-7

On Arduino software, we select our Arduino board by clicking menu Tools-> Board. I chosen Arduino Uno.

ch2-5

We also select a serial port from attached Arduino board on your mach machine. Click menu Tools -> Port.

ch2-6

Compile and upload Blink app to Arduino board. See Compile and Upload icons.

ch2-4

If uploaded, you can see the LED will be on/off every second.