My favorites | Sign in
Project Logo
                
Repository:
Checkout | Browse | Changes | Clones |
 
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: 
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
Hosted by Google Code