EasyManuals Logo

Arduino uno User Manual

Arduino uno
311 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #92 background imageLoading...
Page #92 background image
The first command creates a file named
Telegraph.zip
, and the second one creates
Telegraph.tar.gz
. Both formats are widespread, and its best to offer them both
for download.
Although you have to perform a lot of manual file operations, its still easy to
create an Arduino library. So, theres no excuse: whenever you think youve
built something cool, make it publicly available.
Note that the structure for library projects has slightly changed in the Arduino
IDE 1.5.x and later.
6
The biggest change is that all library source files (
tele-
graph.h
and
telegraph.cpp
, in our case) now have to be stored in a separate folder
named
src
. The new specification is backwards compatiblethat is, old libraries
will still work in the new IDE.
Until now, our projects have communicated with the outside world using
LEDs (output) and pushbuttons (input). In the next chapter, youll learn how
to work with more sophisticated input devices, such as ultrasonic sensors.
Youll also learn how to visualize data that an Arduino sends to programs
running on your computer.
What If It Doesnt Work?
The Arduino IDE has a strong opinion on naming files and directories, and
it was built for creating sketches, not libraries. So, you need to perform a few
manual file operations to get everything into the right place. In the figure on
the preceding page, you can see the final directory layout. If you have more
than one version of the Arduino IDE installed, make sure youre using the
correct
libraries
folder.
Remember that you have to restart the IDE often. Whenever you change one
of the files belonging to your library, restart the IDE.
If syntax coloring doesnt work, make sure your keywords file is actually
named
keywords.txt
. Double-check whether you have separated all objects and
type specifiers by a tab character. Restart your IDE!
Exercises
Morse code not only supports letters and digits, but it also defines symbols
such as commas. Improve the
Telegraph
class so that it understands all
characters of the Morse code.
6.
https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification
report erratum discuss
What If It Doesnt Work? 73
www.it-ebooks.info

Table of Contents

Other manuals for Arduino uno

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Arduino uno and is the answer not in the manual?

Arduino uno Specifications

General IconGeneral
Form factorArduino
CertificationRoHS, FC, CE
Processor model-
Processor frequency- MHz
Microcontroller modelATmega328
Microcontroller frequency16 MHz
DC input voltage7-12 V
Operating voltage5 V
DC current per I/O pin40 mA
Flash memory0.032 MB
Maximum internal memory- GB
SRAM (Static Random Access Memory)2 KB
EEPROM (Electrically Erasable Programmable Read-Only Memory)1 KB
Wi-FiNo
Number of analog I/O pins6
Number of digital I/O pins14
Weight and Dimensions IconWeight and Dimensions
Board dimensions53.4 x 68.6 mm

Related product manuals