Skip to content

A fun drawing app project for the Raspberry Pi and Inky pHAT using Python Flask and React.

Notifications You must be signed in to change notification settings

jonothanhunt/inky-draw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inky Draw

Sreenshot of jonothan.dev

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!

Get started

The first time you use Inky Draw, you'll need to do some installs:

Click here for the initial setup

Python Flask API

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

React app

Install the required packages for the React app:

yarn

Start

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!

Have fun!

inky_draw.webm.mp4

To do

  • 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)

Contribute

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!

About

A fun drawing app project for the Raspberry Pi and Inky pHAT using Python Flask and React.

Topics

Resources

Stars

Watchers

Forks