File tree Expand file tree Collapse file tree 1 file changed +20
-7
lines changed
Expand file tree Collapse file tree 1 file changed +20
-7
lines changed Original file line number Diff line number Diff line change 1515// Arduino_JSON
1616//
1717
18- #define VERSION " F1-01 "
18+ #define VERSION " F1-02 "
1919
2020#ifndef WIFI_NETWORK
2121#define WIFI_NETWORK " MyWifiNetwork"
3838#define SDU_URL " https://test.makerspaceleiden.nl/test-server-crm/api/v1/pay"
3939#endif
4040
41+ #ifndef SKU_URL
42+ #define SKU_URL " https://test.makerspaceleiden.nl/test-server-crm/api/v1/sku"
43+ #endif
44+
4145#ifndef TERMINAL_NAME
42- #define TERMINAL_NAME " Bierplaat -MSL"
46+ #define TERMINAL_NAME " Koffietap -MSL"
4347#endif
4448
4549#ifndef SKU
46- #define SKU 1
50+ #define SKU 2
4751#endif
4852
4953#define HTTP_TIMEOUT (15000 )
6569
6670TM1637TinyDisplay display (DISPLAY_CLK, DISPLAY_DIO);
6771
68- #define RFID_CS 15 // default VSPI wiring
72+
73+ #if SKU == 1
74+ #define RFID_RESET 22
75+ #define RFID_IRQ 21
76+ #define RFID_CS 15
6977#define RFID_SCLK 18
7078#define RFID_MOSI 23
7179#define RFID_MISO 19
72-
73- #define RFID_RESET 22
74- #define RFID_IRQ 21
80+ #else
81+ #define RFID_CS 5 // default VSPI wiring
82+ #define RFID_SCLK 18
83+ #define RFID_MOSI 23
84+ #define RFID_MISO 19
85+ #define RFID_RESET 21 // these two pins swapped on the older beer-node.
86+ #define RFID_IRQ 22
87+ #endif
7588
7689SPIClass RFID_SPI (VSPI);
7790MFRC522_SPI spiDevice = MFRC522_SPI(RFID_CS, RFID_RESET, &RFID_SPI);
You can’t perform that action at this time.
0 commit comments