A fun drawing app project for the Raspberry Pi and Inky pHAT using Python Flask and React.
Select a colour (your Inky's special colour should appear if it has one) and draw with your mouse, then send it to your Inky!
The first time you use Inky Draw, you'll need to do some installs:
Click here for the initial setup
Set api as the current working directory
cd api
Create a Python virtual environment
python3 -m venv my_venv
Activate the environment:
source ./my_venv/bin/activate
Install required packages into the environment:
pip3 install -r ./requirements.txt
Install the required packages for the React app:
yarn
Start the API (make sure your Inky is on your Pi)
yarn start-api
Start the app
yarn dev
The app should not be running at localhost:5173
and can be opened in your browser!
inky_draw.webm.mp4
- Implement Inky special colours 🎉
- Add accessible roles to canvas
- Improve UI colour palette for clarity
- Add more in-depth error reporting
- Potentially break Canvas component into smaller components
- More pens and pencils (as components)
This is fun! And if you think you can make it more fun, more accessible, easier to use, or find a bug— feel free to contribute!
Some of the libraries (especially Python ones) are new to me, so no doubt there are efficiencies to be gained!