timmbogner / Farm-Data-Relay-System

A system that uses ESP-NOW, LoRa, and other protocols to transport sensor data in remote areas without relying on WiFi.
MIT License
524 stars 116 forks source link

FDRS OLED features #151

Closed aviateur17 closed 1 year ago

aviateur17 commented 1 year ago

Add OLED 'pages' and blank OLED screen

Adding "paging" feature to OLED such that different sets of data can be shown. First page will be standard debug data. Rest of pages will be defined later. #define in config file states how long each page will stay on screen (default 30 seconds). When any debug information is added screen immediately switches to that debug screen until there is no action for a specified amount of time (default 30 seconds).

aviateur17 commented 1 year ago

Future enhancements could include, but not limited to, adding additional "pages" and use library that does not have to be modified. Also, add OLED support to nodes.

timmbogner commented 1 year ago

Quick question: in VSCode, I like to use the autoformatter to make my messy code look better. It currently changes any occurrence like this:

void foo(){
  bar();
}

to

void foo()
{
  bar();
}

I prefer the former, but what can I change in VScode to make it do it right?

aviateur17 commented 1 year ago

Agreed, I prefer the more condensed code as far as brackets go. I've never used the autoformatter but I'll spend some time researching and let you know what I find.

aviateur17 commented 1 year ago

Looks like you might need an add-on called prettier: https://www.reddit.com/r/vscode/comments/115h9d1/how_to_change_curly_brackets_behavior_on_file_save/

https://prettier.io/docs/en/rationale.html#empty-lines

aviateur17 commented 1 year ago

This PR should be complete. I don't plan to add any other pages for awhile. I wanted to get the "blank page" stuff in there primarily.

timmbogner commented 1 year ago

Merging this and OTA will be my first task once I get back to work on things. I'm a little behind on things and splitting time with my day-job now.

aviateur17 commented 1 year ago

No worries, take your time. I know you're busy.

timmbogner commented 1 year ago

Not sure if I said this elsewhere, but this is nifty and I appreciate it!