Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
mb_pins.h@0:94e73eda8cda, 2021-12-11 (annotated)
- Committer:
- deki
- Date:
- Sat Dec 11 16:24:27 2021 +0000
- Revision:
- 0:94e73eda8cda
unfinished
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| deki | 0:94e73eda8cda | 1 | /* |
| deki | 0:94e73eda8cda | 2 | * This file contains all the pin names neccessary |
| deki | 0:94e73eda8cda | 3 | * for easy interaction with the EDS-MB for NUCLEOL476RG. |
| deki | 0:94e73eda8cda | 4 | * |
| deki | 0:94e73eda8cda | 5 | * University of Belgrade - School of Electrical Engineering |
| deki | 0:94e73eda8cda | 6 | * Department of Electronics |
| deki | 0:94e73eda8cda | 7 | * Bulevar Kralja Aleksandra 73, 11120 Belgrade, Serbia |
| deki | 0:94e73eda8cda | 8 | * |
| deki | 0:94e73eda8cda | 9 | * November 2021. |
| deki | 0:94e73eda8cda | 10 | * |
| deki | 0:94e73eda8cda | 11 | */ |
| deki | 0:94e73eda8cda | 12 | |
| deki | 0:94e73eda8cda | 13 | // LEDs, 560R in series, cathode to GND; left - red LED1; right - blue LED2: |
| deki | 0:94e73eda8cda | 14 | #define MB_LED1 PA_11 |
| deki | 0:94e73eda8cda | 15 | #define MB_LED2 PB_15 |
| deki | 0:94e73eda8cda | 16 | // Switches, DPST, pulled up with 10k resistor; left SW1, right SW2: |
| deki | 0:94e73eda8cda | 17 | // SW_EXT connector, from left to right: |
| deki | 0:94e73eda8cda | 18 | |
| deki | 0:94e73eda8cda | 19 | #define MB_SW1 PC_9 |
| deki | 0:94e73eda8cda | 20 | #define MB_SW2 PC_8 |
| deki | 0:94e73eda8cda | 21 | // Potentiometers; left POT1, right POT2: |
| deki | 0:94e73eda8cda | 22 | #define MB_POT1 PA_0 |
| deki | 0:94e73eda8cda | 23 | #define MB_POT2 PA_1 |
| deki | 0:94e73eda8cda | 24 | // Common anode, two digit seven-segment display. All signals active at '0': |
| deki | 0:94e73eda8cda | 25 | #define MB_SEL1 PB_6 |
| deki | 0:94e73eda8cda | 26 | #define MB_SEL2 PC_7 |
| deki | 0:94e73eda8cda | 27 | #define MB_A PA_10 |
| deki | 0:94e73eda8cda | 28 | #define MB_B PA_9 |
| deki | 0:94e73eda8cda | 29 | #define MB_C PA_8 |
| deki | 0:94e73eda8cda | 30 | #define MB_D PB_10 |
| deki | 0:94e73eda8cda | 31 | #define MB_E PB_5 |
| deki | 0:94e73eda8cda | 32 | #define MB_F PB_4 |
| deki | 0:94e73eda8cda | 33 | #define MB_G PB_3 |
| deki | 0:94e73eda8cda | 34 | // Piezoelectric buzzer, 10k in parallel; Active at '0': |
| deki | 0:94e73eda8cda | 35 | #define MB_BUZZ PA_11 |
| deki | 0:94e73eda8cda | 36 | // SDD1306-based OLED display; Uses I2C_2 to communicate with NUCLEO: |
| deki | 0:94e73eda8cda | 37 | #define MB_OLED_SDA PB_14 |
| deki | 0:94e73eda8cda | 38 | #define MB_OLED_SCL PB_13 |
| deki | 0:94e73eda8cda | 39 | // ESP8266 WiFi microcontroller; Uses UART_3 to communicate with NUCLEO: |
| deki | 0:94e73eda8cda | 40 | #define MB_ESP_RST PA_12 |
| deki | 0:94e73eda8cda | 41 | #define MB_ESP_TX PC_4 |
| deki | 0:94e73eda8cda | 42 | #define MB_ESP_RX PC_5 |
| deki | 0:94e73eda8cda | 43 | #define MB_ESP_EN RESET |
| deki | 0:94e73eda8cda | 44 | // mikroBUS pinout, upper leftmost pin is no. 1: |
| deki | 0:94e73eda8cda | 45 | #define MB_MIKRO_AN PB_1 |
| deki | 0:94e73eda8cda | 46 | #define MB_MIKRO_RST PB_12 |
| deki | 0:94e73eda8cda | 47 | #define MB_MIKRO_CS PD_2 |
| deki | 0:94e73eda8cda | 48 | #define MB_MIKRO_SCK PC_10 |
| deki | 0:94e73eda8cda | 49 | #define MB_MIKRO_MISO PC_11 |
| deki | 0:94e73eda8cda | 50 | #define MB_MIKRO_MOSI PC_12 |
| deki | 0:94e73eda8cda | 51 | #define MB_MIKRO_SDA PB_14 |
| deki | 0:94e73eda8cda | 52 | #define MB_MIKRO_SCL PB_13 |
| deki | 0:94e73eda8cda | 53 | #define MB_MIKRO_TX PB_11 |
| deki | 0:94e73eda8cda | 54 | #define MB_MIKRO_RX PB_7 |
| deki | 0:94e73eda8cda | 55 | #define MB_MIKRO_INT PB_2 |
| deki | 0:94e73eda8cda | 56 | #define MB_MIKRO_PWM PC_6 |
| deki | 0:94e73eda8cda | 57 | // ANALOG_EXT connector, from left to right: |
| deki | 0:94e73eda8cda | 58 | #define MB_AI1 PC_3 |
| deki | 0:94e73eda8cda | 59 | #define MB_AI2 PC_2 |
| deki | 0:94e73eda8cda | 60 | #define MB_A0 PA_4 |