Problem Using two Arduino and a Class...

edited October 2015 in Arduino

Hello everyone, So I am trying to make this "light Bike" kind of game, where a point moves (according to values sent by 2 different arduinos) while leaving a trace behind itself, and the point is to stay the longest possible while not recrossing the line... Now I defined this point in a class, but can't seem to associate the values coming in from arduino with it properly... Anyone have any ideas what might do the trick? Thanks!

By the way here is my code:

1 2 3 4 5

And the class...

Class 1 Class 2

Thank you for Any Help you can give!!!

Answers

  • Posting images of your code makes it difficult to find errors or problems. Try to include the code as text and format it. Then people could run the code and this helps a lot to understand what it is doing and what might cause problems.

  • Did you test the incoming data?

    Can you work with 2 arduinos?

    Does the game work when you use just keyboard?

Sign In or Register to comment.