![]() The x positions are totally random within display range. The last parameter is only for the blue and red platforms to decide the moving direction and which image to display. Four integers are used to determine the x and y coordinates, the category and the state of the The information ofĮach platform are stored in a python list. Additionally, springs are randomly appended to green platforms to give the player a speed boost. The green ones are basic, the blue ones are moving platforms, the red ones Otherwise there would be an error message that the busįig 2: Accelerometer Testing Results Software 1 Platform Generationįour categories of platforms are generated randomly. To run "sudo pip3" to install bus device dependencies system-wide. To use the libraries, we installed the dependencies and Adafruit CircuitPython LIS3DH library on the board. Any general GPIO pin without other functions can be chosen to connect to INT. We connected Pi 3.3V power to sensor Vin, Pi GND to sensor GND, Pi SCL to sensor SCL, Pi SDA to sensor SDA, and Pi GPIO6
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |