Lilygo T-LoRa-Pager support #1479
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Add support for the Lilygo T-LoRa-Pager.
Device Features
io_expander ioExpander
Hardware Docs: https://github.com/Xinyuan-LilyGO/LilyGoLib/blob/master/docs/hardware/lilygo-t-lora-pager.md
Lilygo PlatformIO Repo: https://github.com/Xinyuan-LilyGO/LilyGoLib-PlatformIO/
Types of Changes
New device
Library changes
Reworked the changes made to the Adafruit library by rennancockles - https://github.com/rennancockles/PN532/
This was needed since this library included coded from the Adafruit BusIO library but with modifications. The latest Adafruit library was needed to stop the T-LoRa-Pager from boot looping when the I2C keyboard was initialised.
The BusIO changes were merged into https://github.com/emericklaw/Adafruit-BusIO_Bruce
The PN532 changes were merged into https://github.com/emericklaw/Adafruit-PN532_Bruce
GPS Serial Port
I have updated the GPS code to use different TX/RX pins (GPS_SERIAL_TX/RX) since the T-LoRa-Pager has multiple UARTS one for GPS and one for expansion port -
precompiler_flags.h
takes care of the mapping if not defined to the standard GROVE_SDA/SCL pins.CURRENT_YEAR for GPS
Now updated a build time to the current year.
mykeyboard.cpp
Since the T-LoRa-Pager has both a keyboard and encoder I had to make minor alterations to the order of the code.
Also allow both encoder and keyboard to be active at the same time, this is because the T-LoRa-Pager keyboard has a limited range of symbols and the encoder needs to be able to move through the on screen keyboard to select.
Verification
Testing
No unit tests
Linked Issues
None
User-Facing Change
Further Comments