Week
13
About
This week's assignment involved application programming. For this, I wanted to play around with making a fun game and connect it to my xiao rp2040 that was connected to the control joystick for direction.
The first game that came across my mind was snakeio where directionality is a very important component so I thought it would be fun to use p5js for this. I began by writing the application.
Next was the embedding process. After wiring a breadboard with the microcontroller and controllers, I wrote a simple code that would replace key inputs in a keyboard with a joystick. However there was an error in code that caused the joystick control to not go through.
Since, it was a simple bug related to tolerance, after toggling values it worked really well.
For more please take a look at the link below: link