Skip to content

feat: add basic GPIO support for repeaters and use pin mappings for the Heltec MeshSolar node#1912

Open
MoppelMat wants to merge 1 commit intomeshcore-dev:devfrom
MoppelMat:feature/heltec-gpio
Open

feat: add basic GPIO support for repeaters and use pin mappings for the Heltec MeshSolar node#1912
MoppelMat wants to merge 1 commit intomeshcore-dev:devfrom
MoppelMat:feature/heltec-gpio

Conversation

@MoppelMat
Copy link

I cloned the code from the (already merged) simple_sensor folder and put it into the repeater code.
The specific pins are from the Heltec MeshSolar node on its pin header H3 (pin GPIO 30 and 5).

The pins are not used in a normal installation.
Use this picture for reference on this node https://docs.heltec.org/en/node/meshsolar/_images/pinmap.jpg
image

I changed it in a way that you can not only enable or disable a pin, but you can pulse it also.
I needed this, to "press the power button" on my RaspBerry Pi in my repeater case.

Usage in admin CLI:
ior 1 (disable the first pin, GPIO 30 in this case)
ios 1 (enable the first pin, GPIO 30 in this case)
iot 1(toggle the first GPIO pin 30 in this case)
iop 1 (enable the the first GPIO pin 30 in this case and disable it 50ms later)

ior 2 (disable the second pin, GPIO 5 in this case)
...

Specifics to this use case:
I put the second GPIO to a Matek BEC enable pin at a later stage, where I not only could "press the power button" but enable or disable the power supply from the RaspBerry Pi with a GPIO pin.

IMG_1199
IMG_1200
IMG_1209

…eltec MeshSolar pin header H3 (pin GPIO 30 and 5)
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