Skip to content

Latest commit

 

History

History

code

README.md

Common code (*_PCB_test, *_JoystickXL_test)

Tip

If you don't see the CIRCUITPY drive in your file manager (after installing one of the code section below) :

  • Press and hold the push button SW9 (J15), power ON the Pico to expose its drive for editing.

You can also disable this default functionality by commenting the last if-else test in the boot code file from boot_PCB_test.py or boot_JoystickXL_test.py.

Code (MultiPicoBoxV2_PCB_test) :

  • MultiPicoBoxV2_PCB_test is for testing the PCB with all external components
    • Requirements : CircuitPython, Adafruit_CircuitPython_MCP230xx, CircuitPython BusDevice for I2C communication (already builtin with CircuitPython version 9), MultiPicoBoxV2 class
    • Create a new file boot.py in the Pico board with Thonny IDE and the code from boot_PCB_test.py
    • Then create a new file code.py in the Pico board and the code from MultiPicoBoxV2_PCB_test.py
    • Copy the main class file MultiPicoBoxV2.py in the Pico board root folder
    • Open and run the file code.py in Thonny IDE and check the shell terminal with all buttons.

Files and folders structure from this part :

MultiPicoBoxV2_PCB_directories

Code (MultiPicoBoxV2_JoystickXL_test) :

  • MultiPicoBoxV2_JoystickXL_test is for testing everything like a gamepad 🕹️
    • Requirements : CircuitPython, Adafruit_CircuitPython_MCP230xx, CircuitPython BusDevice for I2C communication (already builtin with CircuitPython version 9), CircuitPython_JoystickXL, MultiPicoBoxV2 class
    • Read carefully these chapters from JoystickXL documentation : requirements, limitations, host OS/Software compatibilities in https://circuitpython-joystickxl.readthedocs.io/en/latest/
    • Create a new file boot.py in the Pico board and the code from boot_JoystickXL_test.py
    • Then create a new file code.py in the Pico board and the code from MultiPicoBoxV2_JoystickXL_test.py
    • Copy the main class file MultiPicoBoxV2.py in the Pico board root folder
    • Open and run the file code.py in Thonny IDE and check the shell terminal with all buttons or/and with AntiMicroX software below.

Don't forget to reboot the Raspberry Pi Pico after create or update the boot.py file !

Files and folders structure from this second part :

MultiPicoBoxV2_joystickXL_directories

Useful software for testing this code in action (Windows, Linux) 👾

MultiPicoBoxV2_joystickXL_AntiMicroX

Happy coding & have fun ! 🥳