Utility to read and write to all Pokemon mini hardware
Project description
pm2hw
A flasher for all Pokemon mini Flash Cards (that I can actually test).
This is a work in progress, PokeUSB will come soon.
Installation
It would be best to install this via pipx
rather than plain pip; but of course, both are possible.
Windows
The system has been tested on Windows 10 with Python 3.9
- Download and install the FTD2XX drivers for Windows (Desktop).
- Install pipx if it's not installed:
py -m pip install pipx --user
Note you will very likely need to add the folder to your PATH variable (it will warn you post-install). - Install pm2hw:
pipx install pm2hw
Linux/MacOS X
The system has not been tested on these OSes, but it should work.
- Download and install the FTD2XX drivers for Linux or Mac OS X as appropriate.
- Install pipx if it's not installed:
python3 -m pip install pipx --user
- Install pm2hw:
pipx install pm2hw
Usage
- CLI:
pm2hw --help
- Open GUI:
pm2hw-gui
- Navigate to Help -> How to Use
Comparison
All tests run on Python 3.10.5. Write times do not include verification (add the read time for that).
PokeCard 512 v2
Utility | Read | Write |
---|---|---|
PokeFlash (Win10) | 1.344s | 10.109s |
pm2hw (Win10) | 1.481s | 14.771s |
Ditto mini
Utility | Read 512 KiB | Read 2 MiB | Write 512 KiB | Write 2 MiB |
---|---|---|---|---|
Ditto Flash (Win10) | 7.610s | 16.497s | ||
pm2hw (Win10) | 7.370s | 29.209s | 18.706s | 20.331s |
Building
Normal users don't need this it's just for maintainers!!
# TODO: This should use pipx but that's broken on my machine rn
# Install build deps
py -m pip install whey whey-mixin Babel
pypi wheel
# Windows
py -m whey -w
# Other
python3 -m pip whey -w
Windows exe
# Download and install UPX onto your path from https://github.com/upx/upx/releases/
# Install to a more permanent location and update your system environment variables
# to not have to re-add to path etc...
Invoke-WebRequest 'https://github.com/upx/upx/releases/download/v3.96/upx-3.96-win64.zip' -OutFile 'upx.zip'
Expand-Archive -Path 'upx.zip' -DestinationPath '.'
$env:PATH = "$env:PATH;$(pwd)\upx-3.96-win64"
# Build exe
py -m whey -b
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pm2hw-0.0.7.tar.gz
(73.6 kB
view hashes)
Built Distribution
pm2hw-0.0.7-py3-none-any.whl
(264.6 kB
view hashes)