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
Open
feat: add basic GPIO support for repeaters and use pin mappings for the Heltec MeshSolar node#1912MoppelMat wants to merge 1 commit intomeshcore-dev:devfrom
MoppelMat wants to merge 1 commit intomeshcore-dev:devfrom
Conversation
…eltec MeshSolar pin header H3 (pin GPIO 30 and 5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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
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.