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 #90 background imageLoading...
Page #90 background image
Because weve encapsulated the whole Morse code logic in the
Telegraph
class,
our main program is short and concise. Creating software for embedded
devices doesnt mean we cant benefit from the advantages of object-oriented
programming.
Still, we have some minor things to do to turn our project into a first-class
library. Read more about it in the next section.
Publishing Your Own Library
One of the nice features of the Arduino IDE is its syntax coloring. Class names,
function names, variables, and so on all have different colors in the editor.
This makes it much easier to read source code, and its possible to add syntax
coloring for libraries. You only have to add a file named
keywords.txt
to your
project:
TelegraphLibrary/keywords.txt
# Syntax-coloring for the telegraph library
Telegraph KEYWORD1
send_message KEYWORD2
Blank lines and lines starting with a # character will be ignored. The
remaining lines contain the name of one of the librarys members and the
members type. Separate them with a tab character. Classes have the type
KEYWORD1
, while functions have the type
KEYWORD2
. For constants, use
LITERAL1
.
To enable syntax coloring for the telegraph library, copy
keywords.txt
to the
libraries/Telegraph
folder and restart the IDE. Now the name of the
Telegraph
class
will be orange, and
send_message
will be brown.
Before you finally publish your library, you should add a few more things:
Store all example sketches in a folder named
examples
and copy it to the
libraries/Telegraph
folder. Every example sketch should get its own subdirec-
tory within that folder.
Choose a license for your project and copy its terms into a file named
LICENSE
.
3
You might think this is over the top for many libraries, but it will
give your potential audience confidence.
Add installation instructions and documentation. Usually, users expect
to find documentation in a file named
README
, and they will look for
installation instructions in a file named
INSTALL
. You should try to install
3. At
http://www.opensource.org/
, you can find a lot of background information and many
standard licenses.
report erratum discuss
Publishing Your Own Library 71
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