Skip to content

Help with writing value to digital pin #314

Answered by Rahix
gyzerok asked this question in Q&A
Discussion options

You must be logged in to vote

I've managed to get everything working

I assume by that you mean "working with Arduino C"? Can you share the working code if there is any?

what would be the right way to send some specific values to the digital pin to control speed.

This does not make any sense. A digital GPIO pin is just that - a single digital bit. It can be either 1 or 0, which means "on" or "off", also called HIGH or LOW.

You are looking to encode more than one bit of information on a single wire - this is possible by sending bit-patterns over time. The exact way (=encoding) depends on what is connected, though, as the other side will need to "interpret" this bit-pattern.

Assuming that you have some kind of transi…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Rahix
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #232 on September 02, 2022 10:37.