Layout Cheatsheet
Layout Cheatsheet
Sheet
written in the Arduino Integrated Copy for Forum - Copies the code of is uploaded to and run on an Arduino are the ones you will need to know
Development Environment (IDE). your sketch to the clipboard in a form board. about to get you started with Arduino.
Sketches are saved with the file suitable for posting to the forum,
extension .ino. The IDE has features complete with syntax colouring.
for cutting/pasting and for searching/
replacing text. The message area gives Copy as HTML - Copies the code of your
feedback while saving and exporting sketch to the clipboard as HTML, Microcontroller
and also displays errors. The console Chip
displays text output by the Arduino
suitable for embedding in web pages. Code
Digital Pins
Need a hand starting with your environment including complete error Power LED
Arduino board and software? messages and other information. The Sketch
This sheet explains some of the bottom righthand corner of the window Analog Pins
Verify/Compile - Checks your sketch for The setup() function is called when a
displays the current board and serial
basics to get you going on your port. errors. sketch starts. Use it to initialize
variables, pin modes, start using
coding adventure! libraries, etc. The setup function will
Show Sketch Folder - Opens the current
sketch folder. only run once, after each powerup or
reset of the Arduino board.
The Toolbar
Add File - Adds a source file to the
sketch (it will be copied from its current After creating a setup() function, the
location). The new file appears in a new loop() function does precisely what its
tab in the sketch window. Files can be name suggests, and loops consecutively, Power Pins
Below are the toolbar functions you’ll
removed from the sketch using the tab allowing your program to change and
find when you open your Arduino
menu. respond as it runs. Code in the loop()
software.
section of your sketch is used to active-
Import Library - Adds a library to your ly control the Arduino board.
sketch by inserting #include statements Input LED
at the start of your code. The code below won’t actually do
Verify - Check your code for anything, but its structure is useful for
errors. copying and pasting to get you started Oscillator
Tools on any sketch of your own. It also
shows you how to make comments in
Upload - Compiles your code Auto Format - This formats your code your code.
and uploads it to the Arduino nicely: i.e. indents it so that opening and
I/O board. closing curly braces line up, and that Any line that starts with two slashes
the statements inside curly braces are (//) will not be read by the compiler, so
indented more. you can write anything you want after
New - Creates a new sketch. it. Commenting your code like this can
Archive Sketch - Archives a copy of be particularly helpful in explaining,
the current sketch in .zip format. The both to yourself and others, how your
Open - Presents a menu of all archive is placed in the same directory program functions step by step. USB
the sketches in your sketch- as the sketch.
Reset Button Connection
book. Clicking one will open it void setup() {
within the current window. Board - Select the board that you’re // put your setup code here, to run Power Input
using. once:
Save - Saves your sketch. Serial Port - This menu contains all the }
serial devices (real or virtual) on your
machine. It should automatically refresh
www.technologywillsaveus.org void loop() {
Serial Monitor - Opens the every time you open the top-level tools // put your main code here, to run
@techwillsaveus menu.
serial monitor. repeatedly:
}
Made Hackney, London