Skip to content

What does the PintSize.me HAT's button actually do when pressed? #1252

Answered by skipfire
HanSooloo asked this question in Questions
Discussion options

You must be logged in to vote

@HanSooloo the PintSize software that's loaded into the pre-loaded units watches the button and utilizes the RGB LEDs for that. Going to a code level there is a button event listener that also starts a timer, if the timer expires prior to the button being released, then the software calls out to nmcli to do various functions, there is no direct editing of any wifi config files. The button could be repurposed for other uses, or if you have a 26-pin HAT in between it would just be disconnected with no adverse effects other than the button not being able to do anything. If the HAT/pHAT is on a system without the pre-loaded software it does nothing unless you add your own code into it.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@HanSooloo
Comment options

@skipfire
Comment options

@HanSooloo
Comment options

Answer selected by HanSooloo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants