Commit Graph

50 Commits

Author SHA1 Message Date
geeksville
81734f75c8 fix review comments (don't let commands queue up if we are missing a display) 2020-03-29 11:13:53 -07:00
geeksville
11d57e721a fix #68 (@girtsf, pls review - ps: no worries ;-) )
// We don't set useDisplay until setup() is called, because some boards have a declaration of this object but the device
// is never found when probing i2c and therefore we don't call setup and never want to do (invalid) accesses to this device.
2020-03-29 11:00:25 -07:00
Girts Folkmanis
54cd082bfe fix #49: make debug screen show real data
* Break out debug screen to a separate class and make it thread-safe.
* Break out power state to a separate class.
* Show battery voltage, charging & USB status on debug screen.
* Show GPS lock / no lock
* Fix an off-by-one that I introduced earlier in `drawRows`.
2020-03-26 22:17:47 -07:00
geeksville
50d724780a make user presses ask other nodes for their latest status
see related bug
https://github.com/meshtastic/Meshtastic-esp32/issues/59
2020-03-25 13:09:12 -07:00
Girts Folkmanis
3e44c2c3e1 screen.cpp: flip the display 180 2020-03-19 20:15:51 -07:00
geeksville
32ac5ac9ae reformat everything
using @girtsf clang-format prefs settings.  This should allow us to turn
on auto format in our editors without causing spurious file changes.
2020-03-18 19:15:51 -07:00
Girts Folkmanis
daf8594b99 Screen cleanups and refactoring
Work towards separating out how Screen interacts with other stuff.
* `Screen` should now be thread-safe. All commands to it are put in a
  queue and handled in `doTask` from the `loop()` task.
* Break dependency from `BluetoothUtil` to `Screen` by changing the
  pairing request into a callback.
* All accesses to screen now happen through the class.
* Fix `drawRows` so that the text scrolls along with frame animations.
* Remove example code that wasn't used.
2020-03-18 18:11:35 -07:00
Girts Folkmanis
5b54fd6359 screen.cpp: reformat with clang-format 2020-03-18 17:16:19 -07:00
geeksville
2134b4db9b fix #40 force an extra redraw for the bootscreen,
some clones drop the first draw cmd
2020-03-17 16:36:48 -07:00
Girts Folkmanis
41c95eaff7 fix build: add missing include to screen.cpp 2020-03-16 09:26:40 -07:00
geeksville
951f5d11d5 fix text message display when new text arrives
The problem was we were pulsing the display power briefly down while
reentering the ON state (because the ON states exit rule turned it off).
Instead we now just turn off the screen on entry to DARK or LS states
2020-03-04 16:46:57 -08:00
geeksville
425c570757 don't show fake GPS level on devices without one #4 2020-03-04 10:51:29 -08:00
Kevin Hester
fe5703c684 fix the "blank screen when a text message arrives" bug 2020-03-03 10:15:23 -08:00
Girts Folkmanis
0b8d7768fd some minor cleanups
* Suppress warnings about conflicting library names in platformio.ini by
  explicitly picking the libraries by id that we want.
* fix unused static function warning by making it not static ;)
* declare arduino-fsm as dependency for BluetoothOTA. Hopefully this
  fixes the CI builds?

Tested: `pio run` builds.
2020-02-28 19:26:11 -08:00
geeksville
a3df099f60 until my TBEAM is fixed, leave GPS power on in sleep sometimes 2020-02-24 11:21:08 -08:00
geeksville
372a3e000e button presses are fixed 2020-02-22 18:02:44 -08:00
geeksville
5e2044dd63 blink the led very briefly every 5 secs while in light sleep 2020-02-22 17:40:31 -08:00
geeksville
509f9b6e2b WIP state machine builds 2020-02-22 12:01:59 -08:00
geeksville
3df81682b3 now that light-sleep kinda works, use deep-sleep far more rarely 2020-02-21 11:32:33 -08:00
geeksville
20461807f3 change screen into a periodictask, so it can be used with the scheduler 2020-02-21 10:51:36 -08:00
geeksville
d4efb2c44c burn _lots_ less cpu updating the display when idle 2020-02-21 10:13:51 -08:00
geeksville
7a745c9e65 light sleep seems to work well 2020-02-21 04:57:08 -08:00
geeksville
b9438357b6 add support for network ping testing 2020-02-19 18:51:17 -08:00
geeksville
bf347aad91 show users walking heading on the screen 2020-02-19 15:29:18 -08:00
geeksville
47d278b3b9 only display messages destined to us 2020-02-17 16:32:51 -08:00
geeksville
c0fdf227b7 properly show plaintext msgs on oled 2020-02-17 16:27:29 -08:00
geeksville
befb06bdd9 make readme a bit more real. 2020-02-15 08:38:07 -08:00
geeksville
978abc7f63 show a kinda correct heading on the compass graphic 2020-02-14 19:11:31 -08:00
geeksville
4adddf4fd0 show real distances between nodes 2020-02-14 16:25:11 -08:00
geeksville
59aaffa3e5 show real received text messages in the gui 2020-02-12 19:58:44 -08:00
geeksville
efa91f6767 track last contact times for nodes and show in gui 2020-02-12 11:52:53 -08:00
geeksville
c726e5f331 leave screen off most of the time - press to wake 2020-02-12 09:58:46 -08:00
geeksville
d3ce56f1b5 gui polish 2020-02-12 07:51:04 -08:00
geeksville
a0f2d1f18a include a human readable name for each channel 2020-02-11 19:08:17 -08:00
geeksville
5aaae9c4fe we now use 13 different channel numbers 2020-02-11 12:05:46 -08:00
geeksville
124c3e2edd show real radio signal strength 2020-02-11 11:03:03 -08:00
geeksville
6dc17bdfde we now show correct usernames in the nodeinfo screens 2020-02-11 10:51:45 -08:00
geeksville
3e773526b7 drawing correct compass rose works 2020-02-11 09:39:47 -08:00
geeksville
21611e682f 3 lines of debug text on lcd debug screen 2020-02-08 19:45:37 -08:00
geeksville
fb043bf86a sort of work with bicolor displays (yellow+blue), though GUI layout not right 2020-02-08 18:49:15 -08:00
geeksville
b262492c75 show msecs required to send a packet 2020-02-08 10:13:04 -08:00
geeksville
0158fcf352 get ttgo building again 2020-02-08 07:55:12 -08:00
geeksville
bf72326d20 power up the screen if we need it for bluetooth pairing 2020-02-08 07:38:08 -08:00
geeksville
593a6e6f83 BLE is now secured to require pairing with PIN 2020-02-07 20:59:21 -08:00
geeksville
0c0d4025f1 use press to cycle between screens 2020-02-07 17:48:12 -08:00
geeksville
e1f06bff6d placeholder debug and nodeinfo screens are in 2020-02-07 17:26:42 -08:00
geeksville
039f18c80d don't burn so much cpu spinning in loop() 2020-02-07 16:12:55 -08:00
geeksville
6f592fbb6b only show bootscreen once 2020-02-07 15:37:25 -08:00
geeksville
0a369da4a2 make a bootscreen 2020-02-07 14:52:45 -08:00
geeksville
88436f8522 add ui sample code 2020-02-07 13:51:17 -08:00