-
Notifications
You must be signed in to change notification settings - Fork 6
/
config.h
32 lines (26 loc) · 849 Bytes
/
config.h
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
/*
* written by SvOlli
*/
#ifndef __CONFIG_H__
#define __CONFIG_H__ __CONFIG_H__
#include <Arduino.h>
#ifndef DEBUG
#define DEBUG (0)
#endif
/* pin configuration Amiga keyboard
* PIN_KB_RESET is typically the same as PIN_KB_CLK,
* except for the A500 where it has to be a dedicated pin */
#define PIN_KB_CLK (2)
#define PIN_KB_DATA (3)
#define PIN_KB_RESET (4)
/* pin configuration Amiga mouse */
#define PIN_DB9_Y2 (5) /* Pin 1 on DB9 */
#define PIN_DB9_X1 (6) /* Pin 2 on DB9 */
#define PIN_DB9_Y1 (7) /* Pin 3 on DB9 */
#define PIN_DB9_X2 (8) /* Pin 4 on DB9 */
#define PIN_DB9_LB A0 /* Pin 6 on DB9 */
#define PIN_DB9_RB A1 /* Pin 9 on DB9 */
#define PIN_DB9_MB A2 /* Pin 5 on DB9, optional */
/* Pin 8 on DB9 is GND */
/* Pin 7 on DB9 is +5V, which is typically not needed*/
#endif