sudomesh / disaster-radio

A (paused) work-in-progress long-range, low-bandwidth wireless disaster recovery mesh network powered by the sun.
https://disaster.radio
1.05k stars 109 forks source link

Toggle Oled on TTGO boards #102

Open pauldogg opened 3 years ago

pauldogg commented 3 years ago

Ability to toggle the oled to save battery life. I'll be putting mine in an weatherproof enclosure; ideally i'd like it if there's a on/off pin I can use to turn the oled off if the box is open/closed.

Thanks

paidforby commented 3 years ago

Good idea. Should be possible to add this feature to the existing console settings system. changes would need to be made here,

https://github.com/sudomesh/disaster-radio/blob/master/firmware/src/middleware/Console.cpp#L246 https://github.com/sudomesh/disaster-radio/blob/master/firmware/src/settings/settings.cpp

I'm guessing it would require a reboot to take effect.