My favorites
|
Sign in
scott-arduino
Scott's Arduino Sketches
Project Home
Downloads
Wiki
Issues
Source
Repository:
default
wiki
Checkout
|
Browse
|
Changes
|
Clones
|
‹acebbf2743
472f104820
Source path:
hg
/
me_add
/
me_add.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <LiquidCrystal.h>
#include <Button.h>
int friends = 0;
unsigned int rpm;
unsigned long timeold;
//create object to control an LCD GMD1602K.
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
const int numRows = 2;
const int numCols = 16;
Button button = Button(8, PULLUP);
void setup() {
lcd.begin(numRows, numCols);
}
void loop() {
lcd.setCursor(0, 0);
lcd.print("Friend Hunter: Me");
lcd.setCursor(0, 1);
lcd.print("Add: ");
lcd.print(friends);
lcd.print(" friends");
if (button.uniquePress()) {
friends++;
}
delay(200);
}
Show details
Hide details
Change log
21c7db8fa7
by Scott Kirkwood <scottakirkwood> on Oct 29, 2009
Diff
before the party
Go to:
/me_add/me_add.pde
/pov_hat/pov_hat.pde
Project members,
sign in
to write a code review
Older revisions
acebbf2743
by Scott Kirkwood <scottakirkwood> on Oct 28, 2009
Diff
Current status, start of me add
All revisions of this file
File info
Size: 550 bytes, 29 lines
View raw file
Hosted by