-
Notifications
You must be signed in to change notification settings - Fork 108
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
heltec_wifi_lora_32_V2 support #40
Comments
Interesting. It looks like there is an unintentional conflict between a constants in the LoRaLayer2 and LoRa libraries. I haven't seen this issue when compiling with makeEspArduino for the LILY TTGO dev board. I'll change the names of the constants so there is no conflict. However, I'm not sure that is your issue. I haven't been developing with the Heltec dev board, so I'm not sure what pins it has connected to its LoRa transceiver. Maybe there are examples or documentation the would provide hints. Once you figure out what pins it uses, you can manually set the pins by adding the following line in the
Good luck! Let me know what pins work for that board so we can document it somewhere. |
Didn't mean to close issue. But I did update LoRaLayer2 with a partial fix. I renamed the pin constants, so there should no longer be a conflict if you pull the latest commit of LL2. I'll update platformio config to pull the latest. |
Thanks! Pulled the latest commit and set the pins as-per the pinout diagram but no joy I'll keep plugging away and see if I can get it running. |
Hmmm, I know there's some unreliable documentation out there for ESP32 pinouts. Maybe that diagram doesn't show the correct pinout? Or it could be disguising something, like maybe the OLED chip select needs to be pulled low? Wish I could be of more help. I did find that Heltec has a whole repository of source code and example code. It actually looks like they have their own port of sandeep's arduino-LoRa, https://github.com/HelTecAutomation/Heltec_ESP32/blob/master/src/lora/LoRa.h#L7 It's not clear what the difference is outside of a simplified header file. Perhaps there are some clues in that directory that will solve your problem. At the very least, you could try flashing some of their LoRa code examples to confirm that your board is working. |
Thanks for the pointer - their sample OLED_LoRa_Sender works when compiled with Arduino, so now to find the differences! |
I'm at a bit of a loss as to what's happening - I've even tried changing the code to use the Heltec version of the library. I haven't checked the code for pin reuse - I'm wondering if the calls to initialise the SDCard which this board doesn't have are setting a pin. Will look into it more over the next couple of days. |
Happy to report that the code from PR #44 works with additions to platformio.ini
and config.h
As it looks like #44 is going to be merged can we add a definition for Heltec boards to config.h afterwards? Happy to make a PR for changes afterwards or for you to make the changes after the refactor. |
Very nice. That is great to hear. I can just add the lines you provided after merging the refactor, if that is OK with you. I have a few other boards to test, so I'd like to think about the best way to include all of them. |
Perfect - thanks! Those pin definitions came from the paxcounter repo mentioned in the thread of #44 so certainly worth a look there for experimental support for various boards which can be confirmed as/when people test them. |
Now #44 is merged, it looks like my changes to platformio.ini and config.h both work fine for the heltec. Now to get some range testing in! |
Added your suggestions in this commit be1d6ff you'll have to confirm that I copied everything correctly and that it still works for you. (p.s. I also changed the name of the firmware directory to be more general since we now support more that just TTGO boards!) |
Hi - trying to compile for the heltec_wifi_lora_32_V2 board using platformio - compilation succeeds but I'm getting a lot of warnings about pins being overridden in code.
Unsure if this is the source of my problem, but I get a warning that my LoRa radio isn't connected when I launch the serial console.
Any clues gratefully accepted!
The text was updated successfully, but these errors were encountered: