diff options
Diffstat (limited to 'modules/tshield/include/tshield/tshield.h')
-rw-r--r-- | modules/tshield/include/tshield/tshield.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/modules/tshield/include/tshield/tshield.h b/modules/tshield/include/tshield/tshield.h new file mode 100644 index 0000000..b485ad2 --- /dev/null +++ b/modules/tshield/include/tshield/tshield.h @@ -0,0 +1,51 @@ +#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 DEBUG_LEDS 4 +#define DEBUG_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 |