OLED display questions #204
-
I'm working on a wind turbine dump load governer that can be monitored by FDRS lora and controlled by a web page. I'm using a TTGO lora32 oled module. Rather than displaying debugging information I would like the oled to display battery voltage, charge current and dump load status ( ie diverted or not). Part of the design is a boost button that overrides the dump load diversion and forces the turbine to charge for a set time. This boost status needs to dominate the oled dispay, over riding everything else, so that such a situation is closely supervised. I'll provably also make it beep. If I set #define USE_OLED the debugging info continually wipes all the sensor info I write to it. I could graft all the oled I initialization stuff from fdrs_oled.h into my .ino file but I this k there must be a better way.... ..? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 5 replies
-
@NorthBaandee, if you don't want any of the debug information at all you can go into fdrs_oled.h in the drawPageOLED function and on line 114 you can comment out the drawDebugPage(); function call and replace it with a call of whatever information you want to display. You may also want to change the DISPLAY_PAGES define to 1 to only display a single page you want. You can define your page in one of the example functions like drawStatusPage() on line 76 and then call that function instead of drawDebugPage() as mentioned earlier. If you need additional help let us know. |
Beta Was this translation helpful? Give feedback.
-
It sounds like you really just don't want to use the FDRS OLED function at all. You should be able to disable This sounds a little simpler than your solution, but I'm not sure if I understand. Hope it's working out! |
Beta Was this translation helpful? Give feedback.
-
You are correct, it does make this project dependent on FDRS, when I really want FDRS to be an optional feature. The main objective here is a standalone small wturbine controller. Being able to add FDRS as an optional plug-in module would make a great feature on all sorts of machinery. |
Beta Was this translation helpful? Give feedback.
-
Yep that is what I have done. I have rewritten the display to use the simple adafruit oled driver and commented out #define USE_OLED in the fdrs_node_config.h file.Also got rid of all this stuff: |
Beta Was this translation helpful? Give feedback.
OK solved the problem of why the access point was not accepting clients. I had the gateway IP set to something stupid. If the gateway IP is not 0.0.0.0 the softAP won't accept clients. Who knew?