My favorites
▼
|
Sign in
scott-arduino
Scott's Arduino Sketches
Project Home
Issues
Source
Repository:
default
wiki
Checkout
Browse
Changes
Clones
Source path:
hg
/
me_add
/
me_add.pde
‹acebbf2743fc
472f10482020
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
21c7db8fa784
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
acebbf2743fc
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
Powered by
Google Project Hosting