Loading...
Searching...
No Matches
board.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Inria
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#include "board_common.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
28#define MICROBIT_LED_COL1 GPIO_PIN(0, 28)
29#define MICROBIT_LED_COL2 GPIO_PIN(0, 11)
30#define MICROBIT_LED_COL3 GPIO_PIN(0, 31)
31#define MICROBIT_LED_COL4 GPIO_PIN(1, 5)
32#define MICROBIT_LED_COL5 GPIO_PIN(0, 30)
33#define MICROBIT_LED_ROW1 GPIO_PIN(0, 21)
34#define MICROBIT_LED_ROW2 GPIO_PIN(0, 22)
35#define MICROBIT_LED_ROW3 GPIO_PIN(0, 15)
36#define MICROBIT_LED_ROW4 GPIO_PIN(0, 24)
37#define MICROBIT_LED_ROW5 GPIO_PIN(0, 19)
39
44#define BTN0_PIN GPIO_PIN(0, 14)
45#define BTN0_MODE GPIO_IN
46#define BTN1_PIN GPIO_PIN(0, 23)
47#define BTN1_MODE GPIO_IN
48/* The Logo */
49#define BTN2_PIN GPIO_PIN(1, 4)
50#define BTN2_MODE GPIO_IN
51/* Ring 0 */
52#define BTN3_PIN GPIO_PIN(0, 2)
53#define BTN3_MODE GPIO_IN
54/* Ring 1 */
55#define BTN4_PIN GPIO_PIN(0, 3)
56#define BTN4_MODE GPIO_IN
57/* Ring 2 */
58#define BTN5_PIN GPIO_PIN(0, 4)
59#define BTN5_MODE GPIO_IN
61
66#define RUN_MIC_PIN GPIO_PIN(0, 20)
67#define MIC_IN_PIN GPIO_PIN(0, 5)
69
74#define SPEAKER_PIN GPIO_PIN(0, 0)
76
81#define LSM303AGR_PARAM_ACC_ADDR 0x19
82#define LSM303AGR_PARAM_MAG_ADDR 0x1E
84
85#ifdef __cplusplus
86}
87#endif
88