-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial support for TTGO LORA SX1278 ESP32 0.96 OLED 32Mbit (4MB) 433Mhz v1.0 #35
Conversation
This is work in progress, needs revision and fix in its branch prior final merge approval with master. |
Thank you! Really appreciate this effort. It will be a little time before I can get to testing this, but I will get there :) Thanks for the patience ;) |
Have a look at GPIO pin 21 as this may be the issue with the display not working. Active low, powers the oled display and the lora antenna boost? |
Now the OLED is working (needed I2C Wire.begin call) and all pins are set up, although HW Failure is shown, but reading the code seems to be missing provisioning (add ROM.h product/model) but need guidance from @markqvist as how to proceed.. ;-) |
It was a matter of i2c initialization after reset |
Yeah, we need to assign proper model/board codes for it, and these need to be added to |
arduino-cli compile --fqbn esp32:esp32:ttgo-lora32 -e --build-property "build.partitions=no_ota" --build-property "upload.maximum_size=2097152" --build-property "compiler.cpp.extra_flags=\"-DBOARD_MODEL=0x39\"" | ||
|
||
firmware-lora32_v10_extled: | ||
arduino-cli compile --fqbn esp32:esp32:ttgo-lora32 -e --build-property "build.partitions=no_ota" --build-property "upload.maximum_size=2097152" --build-property "compiler.cpp.extra_flags=\"-DBOARD_MODEL=0x38\" \"-DEXTERNAL_LEDS=true\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should probably be BOARD_MODEL=0x39
here as well
@@ -156,6 +157,20 @@ | |||
const int pin_led_rx = 14; | |||
const int pin_led_tx = 32; | |||
#define HAS_BLUETOOTH true | |||
#define HAS_CONSOLE true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something has gone bonkers with all of the indentation here, but never mind, I will clean it up after merge.
@@ -81,7 +82,7 @@ The RNode Firmware supports all transceiver modules based on **Semtech SX1276** | |||
Support for **SX1262**, **SX1268** and **SX1280** is being implemented. Please support the project with donations if you want this faster! | |||
|
|||
## Getting Started Fast | |||
You can download and flash the firmware to all the supported boards using the [RNode Config Utility](https://github.com/markqvist/rnodeconfigutil). All firmware releases are now handled and installed directly through the `rnodeconf` utility, which is inclueded in the `rns` package. It can be installed via `pip`: | |||
You can download and flash the firmware to all the supported boards using the [RNode Config Utility](https://github.com/markqvist/rnodeconfigutil). All firmware releases are now handled and installed directly through the `rnodeconf` utility, which is included in the `rns` package. It can be installed via `pip`: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the typo fix :)
@@ -181,6 +203,15 @@ release-lora32_v21: | |||
zip --junk-paths ./Release/rnode_firmware_lora32v21.zip ./Release/esptool/esptool.py ./Release/console_image.bin build/rnode_firmware_lora32v21.boot_app0 build/rnode_firmware_lora32v21.bin build/rnode_firmware_lora32v21.bootloader build/rnode_firmware_lora32v21.partitions | |||
rm -r build | |||
|
|||
release-lora32_v10_extled: | |||
arduino-cli compile --fqbn esp32:esp32:ttgo-lora32 -e --build-property "build.partitions=no_ota" --build-property "upload.maximum_size=2097152" --build-property "compiler.cpp.extra_flags=\"-DBOARD_MODEL=0x38\" \"-DEXTERNAL_LEDS=true\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check board model code
cp build/esp32.esp32.ttgo-lora32/RNode_Firmware.ino.bin build/rnode_firmware_lora32v10.bin | ||
cp build/esp32.esp32.ttgo-lora32/RNode_Firmware.ino.bootloader.bin build/rnode_firmware_lora32v10.bootloader | ||
cp build/esp32.esp32.ttgo-lora32/RNode_Firmware.ino.partitions.bin build/rnode_firmware_lora32v10.partitions | ||
zip --junk-paths ./Release/rnode_firmware_lora32v10.zip ./Release/esptool/esptool.py ./Release/console_image.bin build/rnode_firmware_lora32v10.boot_app0 build/rnode_firmware_lora32v10.bin build/rnode_firmware_lora32v10.bootloader build/rnode_firmware_lora32v10.partitions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added the filename rnode_firmware_lora32v10.zip
to rnodeconf
, so please don't change it from here on. It will be the filename the flasher downloads while installing and flashing.
Actually, I'll just merge this now, and fix the remaining few minor things, so we can get it tested out :) |
Ok, there should be support for flashing v1.0 boards from |
The latest rnodeconf now sucessfully installs on the v1.0 TTGO LoRa!! |
Added initial support for TTGO LORA SX1278 ESP32 0.96 OLED 32Mbit (4MB) 433Mhz v1.0
Although I need to review it throughly because it does not work (oled black)