-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Any examples of rpigpior with Shiny? #5
Comments
regarding monitoring a switch, I haven't implemented generating an interrupt for a switch - so currently that would done by polling the button every so often. Again - ought to work, but I'm not sure how shiny timing would feel about polling. When you suggest a momentary switch, are you referring to a manual pushbutton? Or are you watching for a signal from some other device? |
Great! Thanks for the general confirmation that this seems possible. I was thinking of a manual pushbutton as I was trying to see the limits of the polling. I presume some kind of proper interrupt would lessen the problems associated with trying to poll events that are short-lived. In general, I was wondering the feasibility of having Shiny be the front-end (and more!) for a number of possible Pi applications -- including monitoring multiple kinds of inputs and controlling multiple kinds of outputs (PWM, etc.). |
I'm wondering whether Pi's GPIO would work well with R's Shiny.
Also, I wonder how this could be adapted to monitor a momentary switch -- something with short pulse that would not span the polling duration set in the Shiny app.
If anyone has examples (or can just say that this generally would work) would be super helpful.
The text was updated successfully, but these errors were encountered: