Initial commit
This commit is contained in:
6
src/config.cpp
Normal file
6
src/config.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "config.h"
|
||||
|
||||
DeviceRole detect_role() {
|
||||
pinMode(PIN_ROLE, INPUT_PULLDOWN);
|
||||
return digitalRead(PIN_ROLE) == HIGH ? DeviceRole::Receiver : DeviceRole::Sender;
|
||||
}
|
||||
Reference in New Issue
Block a user