38 lines
1.3 KiB
C
38 lines
1.3 KiB
C
#pragma once
|
|
#pragma clang diagnostic push
|
|
#pragma ide diagnostic ignored "OCUnusedMacroInspection"
|
|
|
|
// this should be defined by our build script
|
|
#ifndef AFRAPAY_GIT_BRANCH
|
|
#define AFRAPAY_GIT_BRANCH "?"
|
|
#endif
|
|
|
|
#ifndef AFRAPAY_GIT_COMMIT
|
|
#define AFRAPAY_GIT_COMMIT "unknown"
|
|
#endif
|
|
|
|
/*
|
|
* We're using an Az-Delivery ESP-32 Kit:
|
|
* Product: https://web.archive.org/web/20230420182915/https://www.azdelivery.de/en/products/esp32-developmentboard
|
|
* Pinout: https://web.archive.org/web/20210901112537/https://cdn.shopify.com/s/files/1/1509/1638/files/ESP-32_NodeMCU_Developmentboard_Pinout.pdf
|
|
* Datasheet: https://web.archive.org/web/20221209154701/https://cdn.shopify.com/s/files/1/1509/1638/files/ESP-32_NodeMCU_Developmentboard_Schematic_korr.pdf?v=1666000508
|
|
*/
|
|
|
|
//MFRC522 pinout (front) 3V3 RST GND IRQ MISO MOSI SCK SDA
|
|
//MFRC522 pinout (rear) SDA SCK MOSI MISO IRQ GND RST 3V3
|
|
#define PIN_HSPI_RST 4
|
|
#define PIN_HSPI_MISO 12
|
|
#define PIN_HSPI_MOSI 13
|
|
#define PIN_HSPI_SCLK 14
|
|
#define PIN_HSPI_CS0 15 //CS0 (Chip Select 0) = SS channel 0
|
|
#define PIN_HWSERIAL_RX 16
|
|
#define PIN_HWSERIAL_TX 17
|
|
#define PIN_BUZZER 19
|
|
#define PIN_OLED_SDA 21
|
|
#define PIN_OLED_SCL 22
|
|
#define PIN_INTERRUPT_TRANSACT 26
|
|
#define PIN_INTERRUPT_BALANCE 25
|
|
#define PIN_INTERRUPT_LINK 33
|
|
#define PIN_INTERRUPT_CANCEL 32
|
|
#define PIN_INTERRUPT_IRQ_PN532 27
|