Skip to content

Instantly share code, notes, and snippets.

Created September 14, 2016 18:48
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/74e212d2cf421d34836154926ee8c615 to your computer and use it in GitHub Desktop.
Save anonymous/74e212d2cf421d34836154926ee8c615 to your computer and use it in GitHub Desktop.
CONNECT 8BITDO ZERO CONTROLLER TO POCKET CHIP AND CONFIGURE PICO-8
<<CONNECT 8BITDO ZERO CONTROLLER TO POCKET CHIP AND CONFIGURE PICO-8>>
info gathered via https://bbs.nextthing.co/t/usb-controller-for-pico-8-on-pocketc-h-i-p/5077/8
just follow the following steps
-=first pair controller using bluetooth=-
1. open terminal on pocketCHIP (or ssh using putty or something else with a regular keyboard)
2. type "bluetoothctl" to enter interactive shell
3. type "power on" to turn bluetooth on
4. type "agent on" (needed later for entring pin)
5. type "scan" and find your 8bitdo zero controller
6. type "pair <8bitdo-zero-id>" example: pair 16:07:04:58:55:23
7. enter 0000 as pin
8. type "connect <8bitdo-zero-id>" example: connect 16:07:04:58:55:23
9. type "trust <8bitdo-zero-id>" example: trust 16:07:04:58:55:23 (means device will connect automatically when found)
- you may need to fiddle a bit as "connect" failed for me at times, just exit and restart bluetoothctl
now device is paired and will connect automaticaly
-=then register 8bitdo zero controller=-
1. sudo adduser chip input (needed because pico-8 needs to read from SDL input)
2. restart your pocketCHIP (sudo shutdown -r now)
3. sudo nano /etc/skel/.lexaloffle/pico-8/sdl_controllers.txt
4. paste everything below #linux from https://github.com/abrugsch/SDL_GameControllerDB/blob/c20edfc96d53087a2f07b579d2b6a07960eeb1d2/gamecontrollerdb.txt (see last line in this file)
5. save file (ctrl-o) then exit (ctrl-x)
pico-8 is now configured and ready to use your 8bitdo zero controller
-=start pico-8=-
- After starting pico-8 you may need to exit back to the pocketCHIP home screen and click pico-8 again for the controller to register/work
have fun!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment