Added audio feedback of packets received with addition of a piezoe sp… #466
+28
−2
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.
Adds audio feedback (just as the LED flashes) with each received packet.
My patches are for "devel" as I havn't been working on "dev2" yet.
Pitch of tone is at 440Hz currently.
For the two boards I own, I put one lead of the piezoe speaker on ground at the other on a spare GPIO:
Lilygo TTGO LORA32 2.1_1.6, GPIO 4
Lilygo TTGO T-Beam With display added, GPIO 25
This also bumps up the filesystem version from 17 to 18 as it modifies two files on the device. You can upload the full binary image, or just do the code update and manually edit the two files using the built editor:
http://x.x.x.x/edit.html?file=cfg.js
Insert next line after "led_pout"
[ "piezoe_pout", "Piezoe output port"],
http://x.x.x.x/edit.html?file=config.txt
Insert next line after "led_pout="
piezoe_pout=-1
I also had to do a cold reboot for the system to recognize a new configuration item. You'll need to then populate the GPIO for piezoe_pout to a free GPIO for your device (as above) in the web page configuration. You'll know it's working if you hear a 1 second beep during startup.
VE6END