All Projects → moribellamy → porygon

moribellamy / porygon

Licence: MIT license
Programmatic input to the JoyCon, with example script for Pokemon Let's Go

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to porygon

Skookumscript Plugin Legacy
Partial source of the SkookumScript UE4 plugin, with binary runtime and SkookumIDE. This repo has been deprecated and is no longer maintained.
Stars: ✭ 128 (+433.33%)
Mutual labels:  video-game
circuit-simulator
简易在线电路仿真系统
Stars: ✭ 68 (+183.33%)
Mutual labels:  circuits
buptclass
A nodejs-spider that gets the infomation of empty classrooms in BUPT
Stars: ✭ 29 (+20.83%)
Mutual labels:  tesseract-ocr
Pikachu Volleyball P2p Online
Pikachu Volleyball peer-to-peer online via WebRTC data channels
Stars: ✭ 160 (+566.67%)
Mutual labels:  video-game
HighlightTranslator
Highlight Translator can help you to translate the words quickly and accurately. By only highlighting, copying, or screenshoting the content you want to translate anywhere on your computer (ex. PDF, PPT, WORD etc.), the translated results will then be automatically displayed before you.
Stars: ✭ 54 (+125%)
Mutual labels:  tesseract-ocr
FLOSS-Games-on-Steam
A list of FLOSS games available on Steam
Stars: ✭ 90 (+275%)
Mutual labels:  video-game
Gm Games
Single-player 🏀, 🏈, and 🏒 management simulation games, made entirely in client-side JavaScript.
Stars: ✭ 120 (+400%)
Mutual labels:  video-game
gamesearch
A Simple Search Engine to help you find FREE Download Links to your Favourite Games
Stars: ✭ 30 (+25%)
Mutual labels:  video-game
Tetris.jl
you know, for kids? 👾
Stars: ✭ 27 (+12.5%)
Mutual labels:  video-game
MemePolice bot
This is a bot for r/PewdiepieSubmissions. Moderate harmful submissions by applying OCR on graphical content
Stars: ✭ 26 (+8.33%)
Mutual labels:  tesseract-ocr
Capsule
🎬 Cross-platform hotkey short video capture for games
Stars: ✭ 160 (+566.67%)
Mutual labels:  video-game
flask-ocr
use flask and tesseract to have a basic ocr, also you need opencv2, this code use opencv2 to have a basic image process
Stars: ✭ 27 (+12.5%)
Mutual labels:  tesseract-ocr
tesseract-ocr-re
Tesseract 4 OCR Runtime Environment - Docker Container
Stars: ✭ 94 (+291.67%)
Mutual labels:  tesseract-ocr
Destinysets
Stars: ✭ 131 (+445.83%)
Mutual labels:  video-game
GTAV-Self-driving-car
Self driving car in GTAV with Deep Learning
Stars: ✭ 15 (-37.5%)
Mutual labels:  video-game
Lambda Lantern
🧙 ‎‎ A 3D game about functional programming patterns. Uses PureScript Native, C++, and Panda3D.
Stars: ✭ 122 (+408.33%)
Mutual labels:  video-game
receipt-manager-app
Receipt parser application written in dart.
Stars: ✭ 140 (+483.33%)
Mutual labels:  tesseract-ocr
platypus-os
OS for pentesting, programming, and playing video games. Contributions welcome!
Stars: ✭ 23 (-4.17%)
Mutual labels:  video-game
snake-game-2D
The famous 2D snake game in which your goal is to eat until you get huge and accumulate many points.
Stars: ✭ 18 (-25%)
Mutual labels:  video-game
ocreval
Update of the ISRI Analytic Tools for OCR Evaluation with UTF-8 support
Stars: ✭ 48 (+100%)
Mutual labels:  tesseract-ocr

Porygon consists of two parts: a digital circuit that is wired between a RasPi and a JoyCon, as well as a script to run that circuit.

For a video of it in action, and some tips on how to put this together, see the announcement post at https://invoked.net/2019-03-26-joycon-circuit/

Circuit

The parts listed in the circuit:

Component Link Function
PI-IO raspi Array of GPIO pins on the raspi, used to toggle analog switches and to drive an I2C bus.
DG333A Analog Switch (x2) digikey Single Pole, Double Throw switches. To bridge points to COL, emulating a button press.
MCP4725 (x2) sparkfun Digital Analog Converters. The pi sends a signal here to output a variable voltage, which will emulate what the joystick does. I bought breakout boards instead of the chip itself to make soldering easier.

Script

To actually get the inputs going, you'll need shell access to the PI in your circuit. Then,

git clone https://github.com/moribellamy/porygon.git
cd porygon
python3 -m virtualenv venv
. venv/bin/activate
pip install -r requirements.txt

If your circuit diagram varies from the one documented here, there are some settings you can put in config.ini. This is if you didn't use the same pin numbers on your PI GPIO array, or if your power source isn't a clean five volts.

Then you are in control!

from porygon import *
import time

tilt_x(100)  # Go left a while!
time.sleep(1)
still()  # Zero out the joystick.

press(A)
press(X)  # And so forth.

For an example end to end script, which takes input from a webcam, read pokemon_lets_go.py.

Development

More games and automations could be added. Use py.test to run all of the tests.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].