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

Issues with using input and output and startup. #36

Open
fred-dev opened this issue Feb 13, 2023 · 0 comments
Open

Issues with using input and output and startup. #36

fred-dev opened this issue Feb 13, 2023 · 0 comments

Comments

@fred-dev
Copy link

I am having some strange issues, I need to autostart my app, I am using ofxGPIO for input, output, SPI and i2c on a raspberry pi 2b+ with bullseye.

Most of the time the code runs well, at first with a fresh install I could net get GPIO access but after running the user permission changes in this post https://forum.openframeworks.cc/t/ofxgpio-update-debian-stretch/28430/4?u=kashim
I can get input and output - most of the time.
Now I have a strange issue where sometimes on boot the return from my input (just a simple button) is 1, whereas usually it is 0 - I have a state machine to allow for different commands: double presses, triple presses and long presses. When the app starts up with the output inverted my long presses are triggered automatically. Obviously this is not desirable.

Is there a change for the permsision setup for bulleye? Is there an order i need to initialise my pins?

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

No branches or pull requests

1 participant