Wednesday, August 16, 2023

code flop...

Ever since I successfully fired up the eye mechanism, the only thing that annoyed me was that the up/down control of the eyeballs was reversed on the joystick - pushing up made the eyes look down and pushing down made them look up.  Decided to dig into the code and fix that.  Through a little trial and error, I was finally able to figure out which numbers to switch so the joystick would work correctly.  Note: In the Arduino IDE (where the program is edited) - adding two forward slashes ( // ) in front of a line of code or comment keeps it visible but deactivates it from being uploaded.  97,104,70,0,B

2 comments:

remmij said...

you've probably seen, but in case…
https://www.youtube.com/watch?v=jsXolwJskKM

John Wells said...

Yup...been trying to figure out how to incorporate that smoothing code into Dewey's program. No luck yet.