-
Notifications
You must be signed in to change notification settings - Fork 38
Description
(First off, sorry if this isn't the correct place to ask this)
I am trying to create a controller for the switch, and ideally i'd want the same arduino checking buttons and communicating with the switch (this is after I get this step working though).
I have successfully used the client.py script to communicate and send commands to the switch, so I thought that if I recreate the script in arduino, it should work for my purpose.
(Instead of PC -> Serial Adapter -> Arduino (Joystick.hex) -> Switch, i'm trying to use
Arduino (running script) -> Arduino (Joystick.hex) -> Switch
Well, I've done that (except for the testbench functions) and it doesn't work (I can't tell exactly why, but i'm pretty sure it's just not syncing).
Link to arduino code: https://pastebin.com/XWmZmS7y
Is there another way to approach this, or are there any mistakes in my code that is causing it to not work? (I am new to arduino programming and serial communication stuff)
Thank you, and again I apologize if this isn't the right place for this.