Commit Graph

209 Commits

Author SHA1 Message Date
geeksville
93a06906cb begin splitting up source files, so we can have a tree of sources...
unique to each architecture.  For now, we have "esp32" and "bare"

esp32 is the old esp stuff

bare is an target suitable for emulation that doesn't require any
particular hardware to run (no bluetooth, no i2c devices, no spi devices)
2020-04-10 12:15:35 -07:00
BeardyWalrus
3754950a0e
pinouts are swapped for TTGO-Lora32 V1 and V2 boards.
discovered by eriktheV-king in discourse
2020-04-09 20:44:15 -04:00
geeksville
da74803ffb begin cleanup on radio abstraction, details below:
* to allow changing to new mesh transport
* to allow a different chipset for the radio
* to allow testing on hardware with a SimRadio
* new "bare" build env for a devboard with virtually no hardware
* make buttons optional
2020-03-31 21:56:35 -07:00
geeksville
ea250d9cd3 add initial guess at TBEAM 0.7 hardware support 2020-03-28 15:31:22 -07:00
geeksville
be468a2183 add reasonable guesses for TTGO LORA V1 and V2 boards - thanks @sensorsiot
for the pinouts
2020-03-28 14:45:33 -07:00
geeksville
cf2aa37635 clean up configuration.h and add support for ttgo-lora-v1 boards 2020-03-27 16:55:19 -07:00
geeksville
d831beab3d moving build selection into platformio.ini rather than nasty #defines. thanks to @sensorslot
for the pointer to https://github.com/arendst/Tasmota - where I just borrowed heavily ;-)
2020-03-27 14:03:58 -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
geeksville
d0b8adab75 In my work for #11 I accidentially created a serious bug on Heltec...
devices.  It caused bogus i2c transactions when device would go to sleep.
Fixed now, also, I now treat GPS usage uniformly between TBEAM and HELTEC
we always probe for and use the GPS if we find it.

Which means for the extra nerds
(someone requested this, I'm sorry - I don't remember who) you can now
optionally attach an external GPS to HELTECs if you want.  The pins are:

 #define GPS_RX_PIN 34
 #define GPS_TX_PIN 12

(@girtsf, sorry about including formatting changes in this PR, apparently
I had my IDE set to not autoreformat until just now
2020-03-15 16:57:21 -07:00
geeksville
0d62a2be85 release 0.1.6 2020-03-14 18:48:15 -07:00
Kevin Hester
28588f6730 send hw version info via protobufs 2020-03-03 08:23:58 -08:00
geeksville
7b348f30ac text messages screen not coming up if screen was already on 2020-02-25 10:29:37 -08:00
geeksville
6b696bfdc5 hw vendor strings must match file names for auto update 2020-02-24 11:21:34 -08:00
geeksville
51b53f406e include region code in the BLE HW version string. ie 1.0-US 2020-02-24 09:22:34 -08:00
geeksville
bd0f35ad83 fix encoding of sw version numbers in the BLE device info 2020-02-24 09:12:13 -08:00
geeksville
4906b12489 prevent ble powerdown while phone is connected 2020-02-23 08:53:52 -08:00
geeksville
a1a1ceb94d while not perfect, good enough to move power statemachine to master 2020-02-22 14:56:19 -08:00
geeksville
fe2ca65a11 WIP kinda works but light sleep still busted 2020-02-22 13:50:08 -08:00
geeksville
509f9b6e2b WIP state machine builds 2020-02-22 12:01:59 -08:00
geeksville
045529d91f begin cleanup of sleep code for new state machine 2020-02-21 17:01:26 -08:00
geeksville
598023f5db PMU IRQ polarity was backwards 2020-02-21 11:39:10 -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
cd4cd6fe56 progress on keeping gps off more 2020-02-19 10:53:09 -08:00
geeksville
d9a875082c set rtc from gps time 2020-02-19 08:17:28 -08:00
geeksville
67e0f5c184 use RTC time for my timestamp (works across deep sleep) 2020-02-19 07:58:51 -08:00
geeksville
acce254685 Change RF95 to deliver packets straight from ISR and no polling for anything 2020-02-18 20:06:01 -08:00
geeksville
bf491efddf begin support for countries besides the US 2020-02-18 16:18:01 -08:00
geeksville
c0fdf227b7 properly show plaintext msgs on oled 2020-02-17 16:27:29 -08:00
geeksville
0453ffbfd7 Make a Periodic class, use it to blink the LED less often 2020-02-15 11:15:43 -08:00
geeksville
4adddf4fd0 show real distances between nodes 2020-02-14 16:25:11 -08:00
geeksville
52b398083a general both build types 2020-02-14 14:00:08 -08:00
geeksville
56f884cd10 don't sleep if user pressed button recently 2020-02-12 14:29:35 -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
556ad310fc don't deepsleep if we have USB power 2020-02-12 09:13:49 -08:00
geeksville
112505d8e0 track radio signal levels, use wider bandwidth for incompatible radios 2020-02-08 19:45:21 -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
b2b832c608 nasty rxbuffer underfill bug fixed 2020-02-08 09:39:26 -08:00
geeksville
0158fcf352 get ttgo building again 2020-02-08 07:55:12 -08:00
geeksville
0a369da4a2 make a bootscreen 2020-02-07 14:52:45 -08:00
geeksville
71a0602023 update todo list - great progress! 2020-02-06 21:47:22 -08:00
geeksville
ade30ee1ce bidir comm works 2020-02-06 21:26:40 -08:00
geeksville
9625bcbd9e we now sorta set time based on gps 2020-02-06 08:18:20 -08:00
geeksville
0050e4b05a progress 2020-02-05 22:13:27 -08:00
geeksville
83fb38b38c jlink jtag debug now works on lora32 board, problem was gpio14 is needed 2020-02-05 15:37:58 -08:00
geeksville
4a40b9499b allow heltec boards to boot without i2c when jtag debugging 2020-02-04 07:31:32 -08:00
geeksville
634a547030 implement nodeinfo ble charstic 2020-02-03 21:03:20 -08:00
geeksville
df2b40f5a1 report hw vendor and sw version via BLE 2020-02-03 20:18:36 -08:00
geeksville
b799004f0d rx path to phone is written 2020-02-02 18:33:46 -08:00
geeksville
74adc06f89 turn of axp led while sleeping 2020-02-02 13:55:44 -08:00
geeksville
5dca838ba3 wip 2020-02-02 08:17:45 -08:00
geeksville
be8df34722 isolate gpios for minimum deep sleep current draw 2020-02-01 19:45:12 -08:00
geeksville
02ed249374 sleep for a very long time, because the lorawan32 board doesn't have an off switch 2020-02-01 19:09:17 -08:00
geeksville
2474b3b064 progress 2020-02-01 18:45:27 -08:00
geeksville
76f4b92790 Heltec LoRa32 now works 2020-02-01 14:23:21 -08:00
geeksville
1bda9c953e grow our app space in flash 2020-02-01 09:46:25 -08:00
geeksville
2529189a08 add beginnings of mesh radio 2020-02-01 09:05:50 -08:00
geeksville
cdb7153071 move my bt experiment into its own repo (about to remove ttn) 2020-02-01 08:30:53 -08:00