board.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2021 Inria
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 
21 #include "board_common.h"
22 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
31 #define MICROBIT_LED_COL1 GPIO_PIN(0, 28)
32 #define MICROBIT_LED_COL2 GPIO_PIN(0, 11)
33 #define MICROBIT_LED_COL3 GPIO_PIN(0, 31)
34 #define MICROBIT_LED_COL4 GPIO_PIN(1, 5)
35 #define MICROBIT_LED_COL5 GPIO_PIN(0, 30)
36 #define MICROBIT_LED_ROW1 GPIO_PIN(0, 21)
37 #define MICROBIT_LED_ROW2 GPIO_PIN(0, 22)
38 #define MICROBIT_LED_ROW3 GPIO_PIN(0, 15)
39 #define MICROBIT_LED_ROW4 GPIO_PIN(0, 24)
40 #define MICROBIT_LED_ROW5 GPIO_PIN(0, 19)
47 #define BTN0_PIN GPIO_PIN(0, 14)
48 #define BTN0_MODE GPIO_IN
49 #define BTN1_PIN GPIO_PIN(0, 23)
50 #define BTN1_MODE GPIO_IN
51 /* The Logo */
52 #define BTN2_PIN GPIO_PIN(1, 4)
53 #define BTN2_MODE GPIO_IN
54 /* Ring 0 */
55 #define BTN3_PIN GPIO_PIN(0, 2)
56 #define BTN3_MODE GPIO_IN
57 /* Ring 1 */
58 #define BTN4_PIN GPIO_PIN(0, 3)
59 #define BTN4_MODE GPIO_IN
60 /* Ring 2 */
61 #define BTN5_PIN GPIO_PIN(0, 4)
62 #define BTN5_MODE GPIO_IN
69 #define RUN_MIC_PIN GPIO_PIN(0, 20)
70 #define MIC_IN_PIN GPIO_PIN(0, 5)
77 #define SPEAKER_PIN GPIO_PIN(0, 0)
84 #define LSM303AGR_PARAM_ACC_ADDR 0x19
85 #define LSM303AGR_PARAM_MAG_ADDR 0x1E
88 #ifdef __cplusplus
89 }
90 #endif
91