User Manual

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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#include <OrangutanPushbuttons.h>
#include <OrangutanLCD.h>
#include <stdlib.h> // used for its "random" and "srandom" functions
/*
* OrangutanLCDExample2: for the Orangutan SV-xx8, Orangutan LV-168 or 3pi robot
*
* This example uses the OrangutanLCD library to display custom characters on
* the LCD. Simply push a any user pushbutton to display a new, randomly
* chosen mood character.
*/
OrangutanLCD lcd;
// define some custom "mood" characters
#include <avr/pgmspace.h> // this lets us refer to data in program space (i.e. flash)
const char happy[] PROGMEM = {
0b00000, // the 5 bits that make up the top row of the 5x8 character
0b01010,
0b01010,
0b01010,
0b00000,
0b10001,
0b01110,
0b00000
};
const char sad[] PROGMEM = {
0b00000,
0b01010,
0b01010,
0b01010,
0b00000,
0b01110,
0b10001,
0b00000
};
const char indifferent[] PROGMEM = {
0b00000,
0b01010,
0b01010,
0b01010,
0b00000,
0b00000,
0b01110,
0b00000
};
const char surprised[] PROGMEM = {
0b00000,
0b01010,
0b01010,
0b00000,
0b01110,
0b10001,
0b10001,
0b01110
};
const char mocking[] PROGMEM = {
0b00000,
?
Programming Orangutans and the 3pi Robot from the Arduino
Environment
© 2001–2019 Pololu
Corporation
5. Arduino Libraries for the Orangutan and 3pi Robot Page 51 of 66