board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
24 #include "board_common.h"
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
34 #define MICROBIT_LED_COL1 GPIO_PIN(0, 4)
35 #define MICROBIT_LED_COL2 GPIO_PIN(0, 5)
36 #define MICROBIT_LED_COL3 GPIO_PIN(0, 6)
37 #define MICROBIT_LED_COL4 GPIO_PIN(0, 7)
38 #define MICROBIT_LED_COL5 GPIO_PIN(0, 8)
39 #define MICROBIT_LED_COL6 GPIO_PIN(0, 9)
40 #define MICROBIT_LED_COL7 GPIO_PIN(0, 10)
41 #define MICROBIT_LED_COL8 GPIO_PIN(0, 11)
42 #define MICROBIT_LED_COL9 GPIO_PIN(0, 12)
43 #define MICROBIT_LED_ROW1 GPIO_PIN(0, 13)
44 #define MICROBIT_LED_ROW2 GPIO_PIN(0, 14)
45 #define MICROBIT_LED_ROW3 GPIO_PIN(0, 15)
52 #define BTN0_PIN GPIO_PIN(0, 17)
53 #define BTN0_MODE GPIO_IN
54 #define BTN1_PIN GPIO_PIN(0, 16)
55 #define BTN1_MODE GPIO_IN
58 #ifdef __cplusplus
59 }
60 #endif
61