 |  |  |
 | jplafor wrote: Hi i am programming for two servos on the d-pad(tophat) i am getting these errors *Warning*:Assignment '=' embedded in expression *Warning*:Assignment '=' embedded in expression thank you in advanced |  |
 |  |  |
Welcome to the forums!!
Assuming I'm understanding your code correctly, your assigning values to servos, correct? If so, you can't set the status of two things like that in in the same line of code. Does this version work?
I think your getting that warning 'cause if you use the "&&" operator, it's looking for a "if" statement and the "==" that looks for a matching value.
Does this help?
_________________A.K.A. inxt-generation
Self-proclaimed genius, and future world dominator.
My Brickshelf Folder"Don't they teach recreational mathematics anymore?" - The Tenth Doctor
Bow down to Nikola Tesla, King of the Geek Gods.