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 #246 background imageLoading...
Page #246 background image
Blaminatrs are perfect office toys that you can use in many situations. For
software developers, it can be a good idea to attach one to your continuous
integration (CI) system. Continuous integration systems, such as Jenkins,
3
help you continuously check whether your software is in good shape.
Whenever a developer checks in changes, the CI automatically compiles the
software and runs all tests. Then it publishes the results via email or as an
RSS feed. You can easily write a small piece of software that subscribes to
such a feed. Whenever someone breaks the build, youll find a notification in
the feed, and you can use the Blaminatr to point to the name of the developer
who has committed the latest changes.
4
In the previous section, you learned all about the servo motor you need to
build the Blaminatr. Now we need only some creativity to build the devices
display, and we need more elaborate software. We start with a class named
Team
that represents the members of our team; that is, the potential blamees:
Motors/Blaminatr/Blaminatr.ino
const unsigned int MAX_MEMBERS = 10;
Line 1
-
class Team {
-
const char** _members;
-
unsigned int _num_members;
5
unsigned int _positions[MAX_MEMBERS];
-
public:
-
Team(const char** members) {
-
_members = members;
-
_num_members = 0;
10
const char** member = _members;
-
while (*member++)
-
_num_members++;
-
-
const unsigned int share = 180 / _num_members;
15
unsigned int pos = share / 2;
-
for (unsigned int i = 0; i < _num_members; i++) {
-
_positions[i] = pos;
-
pos += share;
-
}
20
}
-
-
int get_position(const char* name) const {
-
int position = 0;
-
for (unsigned int i = 0; i < _num_members; i++) {
25
if (!strcmp(_members[i], name)) {
-
3.
http://jenkins-ci.org//
4. At
http://urbanhonking.com/ideasfordozens/2010/05/19/the_github_stoplight/
, you can see an alternative
project. It uses a traffic light to indicate your projects current status.
report erratum discuss
Building a Blaminatr 231
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