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 
22 #include "board_common.h"
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
32 #define MICROBIT_LED_COL1 GPIO_PIN(0, 4)
33 #define MICROBIT_LED_COL2 GPIO_PIN(0, 5)
34 #define MICROBIT_LED_COL3 GPIO_PIN(0, 6)
35 #define MICROBIT_LED_COL4 GPIO_PIN(0, 7)
36 #define MICROBIT_LED_COL5 GPIO_PIN(0, 8)
37 #define MICROBIT_LED_COL6 GPIO_PIN(0, 9)
38 #define MICROBIT_LED_COL7 GPIO_PIN(0, 10)
39 #define MICROBIT_LED_COL8 GPIO_PIN(0, 11)
40 #define MICROBIT_LED_COL9 GPIO_PIN(0, 12)
41 #define MICROBIT_LED_ROW1 GPIO_PIN(0, 13)
42 #define MICROBIT_LED_ROW2 GPIO_PIN(0, 14)
43 #define MICROBIT_LED_ROW3 GPIO_PIN(0, 15)
50 #define BTN0_PIN GPIO_PIN(0, 17)
51 #define BTN0_MODE GPIO_IN
52 #define BTN1_PIN GPIO_PIN(0, 26)
53 #define BTN1_MODE GPIO_IN
60 #define MMA8X5X_PARAM_I2C I2C_DEV(0)
61 #define MMA8X5X_PARAM_ADDR 0x1d
68 #define MAG3110_PARAM_I2C I2C_DEV(0)
69 #define MAG3110_PARAM_ADDR 0x0e
72 #ifdef __cplusplus
73 }
74 #endif
75