Skip to content

output constant value #1896

Answered by pschatzmann
AutoEM asked this question in Q&A
Feb 3, 2025 · 4 comments · 1 reply
Discussion options

You must be logged in to vote

I would suggest to use a dedicated library for motor control instead: they are usually using PWM.

If you want to experiment with this library for this purpose I would suggest the following options:

  • try to use an AnalogAudioStream as output to use the internal DAC
  • try to use a PWMAudioOutput to use potentially any pin
  • in loop1 just do the copier.copy in the loop and define fi as volatile
  • define the copy size in the constructor of StreamCopy to make it more responsive

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by pschatzmann
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
1 reply
@pschatzmann
Comment options

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