imported Processing simulation code into main Arduino code