Skip to content
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

Added audio feedback of packets received with addition of a piezoe sp… #466

Open
wants to merge 2 commits into
base: devel
Choose a base branch
from

Conversation

jonesea
Copy link

@jonesea jonesea commented Sep 25, 2024

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:

  1. http://x.x.x.x/edit.html?file=cfg.js
    Insert next line after "led_pout"
    [ "piezoe_pout", "Piezoe output port"],

  2. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant