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

mgos_bitbang support clock signal? #535

Open
Harvie opened this issue Apr 8, 2020 · 3 comments
Open

mgos_bitbang support clock signal? #535

Harvie opened this issue Apr 8, 2020 · 3 comments

Comments

@Harvie
Copy link

Harvie commented Apr 8, 2020

Hello,
can you please add possibility to output clock signal on second GPIO using mgos_bitbang ?

@rojer
Copy link
Collaborator

rojer commented Apr 10, 2020

mgos_bitbang is not currently suited for outputting continuous signals. you are better off using hardware timer.

@Harvie
Copy link
Author

Harvie commented Apr 16, 2020

what does "continuous signal" mean? My use case is not exactly streaming a lot of data non-stop. Just sending few bytes now and then. Just short commands to configure external IC...

@rojer
Copy link
Collaborator

rojer commented Apr 16, 2020

ok, so you need to drive two pins - clock and then bitbang data, correct?
i see how it might be useful, but making it generic is a bit problematic. you'll need to specify whether to change data on rising or falling edge of the clock, etc.
i'd say, you'll need to build your own solution, if more people come along and ask for it, we can think about making it a library feature.

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

2 participants