board.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2016 Freie Universität Berlin
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
21 #include "board_common.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 #define MICROBIT_LED_COL1 GPIO_PIN(0, 4)
32 #define MICROBIT_LED_COL2 GPIO_PIN(0, 5)
33 #define MICROBIT_LED_COL3 GPIO_PIN(0, 6)
34 #define MICROBIT_LED_COL4 GPIO_PIN(0, 7)
35 #define MICROBIT_LED_COL5 GPIO_PIN(0, 8)
36 #define MICROBIT_LED_COL6 GPIO_PIN(0, 9)
37 #define MICROBIT_LED_COL7 GPIO_PIN(0, 10)
38 #define MICROBIT_LED_COL8 GPIO_PIN(0, 11)
39 #define MICROBIT_LED_COL9 GPIO_PIN(0, 12)
40 #define MICROBIT_LED_ROW1 GPIO_PIN(0, 13)
41 #define MICROBIT_LED_ROW2 GPIO_PIN(0, 14)
42 #define MICROBIT_LED_ROW3 GPIO_PIN(0, 15)
49 #define BTN0_PIN GPIO_PIN(0, 17)
50 #define BTN0_MODE GPIO_IN
51 #define BTN1_PIN GPIO_PIN(0, 16)
52 #define BTN1_MODE GPIO_IN
55 #ifdef __cplusplus
56 }
57 #endif
58