Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
20
#ifndef BOARD_H
21
#define BOARD_H
22
23
#include "board_common.h"
24
25
#ifdef __cplusplus
26
extern
"C"
{
27
#endif
28
33
#define MICROBIT_LED_COL1 GPIO_PIN(0, 4)
34
#define MICROBIT_LED_COL2 GPIO_PIN(0, 5)
35
#define MICROBIT_LED_COL3 GPIO_PIN(0, 6)
36
#define MICROBIT_LED_COL4 GPIO_PIN(0, 7)
37
#define MICROBIT_LED_COL5 GPIO_PIN(0, 8)
38
#define MICROBIT_LED_COL6 GPIO_PIN(0, 9)
39
#define MICROBIT_LED_COL7 GPIO_PIN(0, 10)
40
#define MICROBIT_LED_COL8 GPIO_PIN(0, 11)
41
#define MICROBIT_LED_COL9 GPIO_PIN(0, 12)
42
#define MICROBIT_LED_ROW1 GPIO_PIN(0, 13)
43
#define MICROBIT_LED_ROW2 GPIO_PIN(0, 14)
44
#define MICROBIT_LED_ROW3 GPIO_PIN(0, 15)
45
51
#define BTN0_PIN GPIO_PIN(0, 17)
52
#define BTN0_MODE GPIO_IN
53
#define BTN1_PIN GPIO_PIN(0, 26)
54
#define BTN1_MODE GPIO_IN
55
61
#define MMA8X5X_PARAM_I2C I2C_DEV(0)
62
#define MMA8X5X_PARAM_ADDR 0x1d
63
69
#define MAG3110_PARAM_I2C I2C_DEV(0)
70
#define MAG3110_PARAM_ADDR 0x0e
71
73
#ifdef __cplusplus
74
}
75
#endif
76
77
#endif
/* BOARD_H */
78
Generated on Tue Nov 24 2020 19:46:49 by
1.8.17