Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
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
19
#ifndef BOARD_H
20
#define BOARD_H
21
22
#include "board_common.h"
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
32
#define MICROBIT_LED_COL1 GPIO_PIN(0, 28)
33
#define MICROBIT_LED_COL2 GPIO_PIN(0, 11)
34
#define MICROBIT_LED_COL3 GPIO_PIN(0, 31)
35
#define MICROBIT_LED_COL4 GPIO_PIN(1, 5)
36
#define MICROBIT_LED_COL5 GPIO_PIN(0, 30)
37
#define MICROBIT_LED_ROW1 GPIO_PIN(0, 21)
38
#define MICROBIT_LED_ROW2 GPIO_PIN(0, 22)
39
#define MICROBIT_LED_ROW3 GPIO_PIN(0, 15)
40
#define MICROBIT_LED_ROW4 GPIO_PIN(0, 24)
41
#define MICROBIT_LED_ROW5 GPIO_PIN(0, 19)
48
#define BTN0_PIN GPIO_PIN(0, 14)
49
#define BTN0_MODE GPIO_IN
50
#define BTN1_PIN GPIO_PIN(0, 23)
51
#define BTN1_MODE GPIO_IN
52
/* The Logo */
53
#define BTN2_PIN GPIO_PIN(1, 4)
54
#define BTN2_MODE GPIO_IN
55
/* Ring 0 */
56
#define BTN3_PIN GPIO_PIN(0, 2)
57
#define BTN3_MODE GPIO_IN
58
/* Ring 1 */
59
#define BTN4_PIN GPIO_PIN(0, 3)
60
#define BTN4_MODE GPIO_IN
61
/* Ring 2 */
62
#define BTN5_PIN GPIO_PIN(0, 4)
63
#define BTN5_MODE GPIO_IN
70
#define RUN_MIC_PIN GPIO_PIN(0, 20)
71
#define MIC_IN_PIN GPIO_PIN(0, 5)
78
#define SPEAKER_PIN GPIO_PIN(0, 0)
85
#define LSM303AGR_PARAM_ACC_ADDR 0x19
86
#define LSM303AGR_PARAM_MAG_ADDR 0x1E
89
#ifdef __cplusplus
90
}
91
#endif
92
93
#endif
/* BOARD_H */
Generated on Sat Nov 23 2024 01:58:05 by
1.9.8