blob: 26241317c2c4909e8fc95d4407f4972d72e35709 (
plain) (
blame)
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
|
#ifndef TSHIElD_H
#define TSHIELD_H
/*
* Custom test shield
* Pin mappings
*
* Leds (from left to right)
* =====
* Color | Arduino pin | atmega2560
* ----------------------------------
* Green D6 PH3
* Yellow D7 PH4
* Red D5 PE3
* Red D4 PG5
*
*
* Buttons (from left to right)
* =====
* Number | Arduino pin | atmega2560
* ---------------------------------
* 0 D2 PE4 (INT4)
* 1 D8 PH5
* 2 D10 PB4
*
* Outputs (from top to bottom)
* =====
* Type | Arduino pin | atmega2560
* ------------------------------------------------------
* Servo 11, Vcc, GND PB5
* Diode protected (max 200mA) 12 PB6
*
*/
#define TSHIELD_LED_IDLE 0
void tshield_init();
void tshield_test();
unsigned char tshield_read();
void tshield_led(unsigned char led, unsigned char value);
void tshield_pp(unsigned char value);
void tshield_servo(unsigned char angle);
#endif
|