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 
19 #include "board_common.h"
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
29 #define MICROBIT_LED_COL1 GPIO_PIN(0, 4)
30 #define MICROBIT_LED_COL2 GPIO_PIN(0, 5)
31 #define MICROBIT_LED_COL3 GPIO_PIN(0, 6)
32 #define MICROBIT_LED_COL4 GPIO_PIN(0, 7)
33 #define MICROBIT_LED_COL5 GPIO_PIN(0, 8)
34 #define MICROBIT_LED_COL6 GPIO_PIN(0, 9)
35 #define MICROBIT_LED_COL7 GPIO_PIN(0, 10)
36 #define MICROBIT_LED_COL8 GPIO_PIN(0, 11)
37 #define MICROBIT_LED_COL9 GPIO_PIN(0, 12)
38 #define MICROBIT_LED_ROW1 GPIO_PIN(0, 13)
39 #define MICROBIT_LED_ROW2 GPIO_PIN(0, 14)
40 #define MICROBIT_LED_ROW3 GPIO_PIN(0, 15)
47 #define BTN0_PIN GPIO_PIN(0, 17)
48 #define BTN0_MODE GPIO_IN
49 #define BTN1_PIN GPIO_PIN(0, 26)
50 #define BTN1_MODE GPIO_IN
57 #define MMA8X5X_PARAM_I2C I2C_DEV(0)
58 #define MMA8X5X_PARAM_ADDR 0x1d
65 #define MAG3110_PARAM_I2C I2C_DEV(0)
66 #define MAG3110_PARAM_ADDR 0x0e
69 #ifdef __cplusplus
70 }
71 #endif
72