Replies: 2 comments 8 replies
-
I'm always surprised that nobody seems to use the inbuilt ARM SAM hardware PWM or interrupt support. It seems to me that either of these would control stepper motors much more effectively. But that's an entirely different discussion outside of tcMenu. The short answer is yes you could directly read it, but there may be another way. Reading a matrix keyboard is slow, and involves many steps, the guide on keyboards explains it. However, that aside, you could call |
Beta Was this translation helpful? Give feedback.
-
Hello Dave! Finally i could do some speed tests. taskManager.runLoop() is somewhere in my main file, its not full speed cause some other stuff is running too. The 2nd measurement is running in a small sub loop without calling taskManager.runLoop(), instead i poll the keyboard with keyboard.exec();
|
Beta Was this translation helpful? Give feedback.
-
Hello Dave, one more thing ;)
I use the 5x4 keypad, 20x4 LCD together with the AccelStepper library. When moving the stepper motor i dont call taskManager.runLoop(), otherwise the performance on the Due is not sufficient. So far so good.
But now i need a function where i need to poll the keyboard (nothing menu related) and drive the stepper at the same time. The plan is to poll the keyboard directly. So the Q is if i just can steal the keyboard pins or if i have to close/open them via iOAbstraction/taskmanager/keyboard.
Beta Was this translation helpful? Give feedback.
All reactions