- Add SD history chart + download listing to web UI - Use HSPI for SD and fix SD pin mapping - Swap role/OLED control pins and update role detection - Update README pin mapping and SD/history docs
7 lines
171 B
C++
7 lines
171 B
C++
#include "config.h"
|
|
|
|
DeviceRole detect_role() {
|
|
pinMode(PIN_ROLE, INPUT_PULLDOWN);
|
|
return digitalRead(PIN_ROLE) == HIGH ? DeviceRole::Sender : DeviceRole::Receiver;
|
|
}
|