![](/media/cache/profiles/olja.png.50x50_q85.png)
Student project, Faculty of Electrical Engineering, University of Belgrade
Dependencies: SSD1308_128x64_I2C Adafruit_GFX 19E042PIM_MB_PINS
mb_pins.h@2:4c2c7c8d608b, 2022-07-13 (annotated)
- Committer:
- oljakovljevic
- Date:
- Wed Jul 13 15:07:00 2022 +0000
- Revision:
- 2:4c2c7c8d608b
Student project, Faculty of Electrical Engineering, University of Belgrade
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
oljakovljevic | 2:4c2c7c8d608b | 1 | /* |
oljakovljevic | 2:4c2c7c8d608b | 2 | * This file contains all the pin names neccessary |
oljakovljevic | 2:4c2c7c8d608b | 3 | * for easy interaction with the EDS-MB for NUCLEOL476RG. |
oljakovljevic | 2:4c2c7c8d608b | 4 | * |
oljakovljevic | 2:4c2c7c8d608b | 5 | * University of Belgrade - School of Electrical Engineering |
oljakovljevic | 2:4c2c7c8d608b | 6 | * Department of Electronics |
oljakovljevic | 2:4c2c7c8d608b | 7 | * Bulevar Kralja Aleksandra 73, 11120 Belgrade, Serbia |
oljakovljevic | 2:4c2c7c8d608b | 8 | * |
oljakovljevic | 2:4c2c7c8d608b | 9 | * November 2021. |
oljakovljevic | 2:4c2c7c8d608b | 10 | * |
oljakovljevic | 2:4c2c7c8d608b | 11 | */ |
oljakovljevic | 2:4c2c7c8d608b | 12 | |
oljakovljevic | 2:4c2c7c8d608b | 13 | // LEDs, 560R in series, cathode to GND; left - red LED1; right - blue LED2: |
oljakovljevic | 2:4c2c7c8d608b | 14 | #define MB_LED1 PA_11 |
oljakovljevic | 2:4c2c7c8d608b | 15 | #define MB_LED2 PB_15 |
oljakovljevic | 2:4c2c7c8d608b | 16 | // Switches, DPST, pulled up with 10k resistor; left SW1, right SW2: |
oljakovljevic | 2:4c2c7c8d608b | 17 | // SW_EXT connector, from left to right: |
oljakovljevic | 2:4c2c7c8d608b | 18 | |
oljakovljevic | 2:4c2c7c8d608b | 19 | #define MB_SW1 PC_9 |
oljakovljevic | 2:4c2c7c8d608b | 20 | #define MB_SW2 PC_8 |
oljakovljevic | 2:4c2c7c8d608b | 21 | // Potentiometers; left POT1, right POT2: |
oljakovljevic | 2:4c2c7c8d608b | 22 | #define MB_POT1 PA_0 |
oljakovljevic | 2:4c2c7c8d608b | 23 | #define MB_POT2 PA_1 |
oljakovljevic | 2:4c2c7c8d608b | 24 | // Common anode, two digit seven-segment display. All signals active at '0': |
oljakovljevic | 2:4c2c7c8d608b | 25 | #define MB_SEL1 PB_6 |
oljakovljevic | 2:4c2c7c8d608b | 26 | #define MB_SEL2 PC_7 |
oljakovljevic | 2:4c2c7c8d608b | 27 | #define MB_A PA_10 |
oljakovljevic | 2:4c2c7c8d608b | 28 | #define MB_B PA_9 |
oljakovljevic | 2:4c2c7c8d608b | 29 | #define MB_C PA_8 |
oljakovljevic | 2:4c2c7c8d608b | 30 | #define MB_D PB_10 |
oljakovljevic | 2:4c2c7c8d608b | 31 | #define MB_E PB_5 |
oljakovljevic | 2:4c2c7c8d608b | 32 | #define MB_F PB_4 |
oljakovljevic | 2:4c2c7c8d608b | 33 | #define MB_G PB_3 |
oljakovljevic | 2:4c2c7c8d608b | 34 | // Piezoelectric buzzer, 10k in parallel; Active at '0': |
oljakovljevic | 2:4c2c7c8d608b | 35 | #define MB_BUZZ PA_11 |
oljakovljevic | 2:4c2c7c8d608b | 36 | // SDD1306-based OLED display; Uses I2C_2 to communicate with NUCLEO: |
oljakovljevic | 2:4c2c7c8d608b | 37 | #define MB_OLED_SDA PB_14 |
oljakovljevic | 2:4c2c7c8d608b | 38 | #define MB_OLED_SCL PB_13 |
oljakovljevic | 2:4c2c7c8d608b | 39 | // ESP8266 WiFi microcontroller; Uses UART_3 to communicate with NUCLEO: |
oljakovljevic | 2:4c2c7c8d608b | 40 | #define MB_ESP_RST PA_12 |
oljakovljevic | 2:4c2c7c8d608b | 41 | #define MB_ESP_TX PC_4 |
oljakovljevic | 2:4c2c7c8d608b | 42 | #define MB_ESP_RX PC_5 |
oljakovljevic | 2:4c2c7c8d608b | 43 | #define MB_ESP_EN RESET |
oljakovljevic | 2:4c2c7c8d608b | 44 | // mikroBUS pinout, upper leftmost pin is no. 1: |
oljakovljevic | 2:4c2c7c8d608b | 45 | #define MB_MIKRO_AN PB_1 |
oljakovljevic | 2:4c2c7c8d608b | 46 | #define MB_MIKRO_RST PB_12 |
oljakovljevic | 2:4c2c7c8d608b | 47 | #define MB_MIKRO_CS PD_2 |
oljakovljevic | 2:4c2c7c8d608b | 48 | #define MB_MIKRO_SCK PC_10 |
oljakovljevic | 2:4c2c7c8d608b | 49 | #define MB_MIKRO_MISO PC_11 |
oljakovljevic | 2:4c2c7c8d608b | 50 | #define MB_MIKRO_MOSI PC_12 |
oljakovljevic | 2:4c2c7c8d608b | 51 | #define MB_MIKRO_SDA PB_14 |
oljakovljevic | 2:4c2c7c8d608b | 52 | #define MB_MIKRO_SCL PB_13 |
oljakovljevic | 2:4c2c7c8d608b | 53 | #define MB_MIKRO_TX PB_11 |
oljakovljevic | 2:4c2c7c8d608b | 54 | #define MB_MIKRO_RX PB_7 |
oljakovljevic | 2:4c2c7c8d608b | 55 | #define MB_MIKRO_INT PB_2 |
oljakovljevic | 2:4c2c7c8d608b | 56 | #define MB_MIKRO_PWM PC_6 |
oljakovljevic | 2:4c2c7c8d608b | 57 | // ANALOG_EXT connector, from left to right: |
oljakovljevic | 2:4c2c7c8d608b | 58 | #define MB_AI1 PC_3 |
oljakovljevic | 2:4c2c7c8d608b | 59 | #define MB_AI2 PC_2 |
oljakovljevic | 2:4c2c7c8d608b | 60 | #define MB_A0 PA_4 |