Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
My experience with the slider
07-26-2020, 09:05 PM
Post: #21
RE: My experience with the slider
(07-15-2020 07:21 PM)MisterMaker Wrote:  Update on my progress.
https://twitter.com/MvdH74169613/status/...3526048771
I noticed the devia board has a little switch. I want to try and use this to switch moving directions.
Note sure if I could just flip?
Code:
dir_M1=0;
dir_M2=0;

Use this TEST code as reference. It uses (just) the A-button to turn/off and on the DEVIA┬┤s LED

.zip  M0_Devia_Board_button_test.zip (Size: 1.2 KB / Downloads: 3)
You can easily create a STATE value that can be changed pressing the A-button. That "flag" can change the spinning direction of the motor/s

The code provides a very good idea about how to use the button for your purposes. I hope it helps!
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: My experience with the slider - JohnQ - 06-03-2020, 09:15 AM
RE: My experience with the slider - JohnQ - 06-04-2020, 09:11 PM
RE: My experience with the slider - JohnQ - 06-16-2020, 09:47 PM
RE: My experience with the slider - JJrobots JP - 07-26-2020 09:05 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)