Skip to content

Draw with raspberry pi and sense HAT, using golang and websocket

License

Notifications You must be signed in to change notification settings

nunnatsa/piHatDraw

Repository files navigation

PiHatDraw

The PiHatDraw is a learning project, to create a drwaing application to run with a Raspberry Pi with a Sense HAT, in the go programming language (goland).

The Sense HAT contains an 8X8 LED display and a joystick. In this project, we're using the joystick to draw. The Sense HAT LED display is a floating window that shows a subset of the full picture.

Sense HAT

The full picture can be viewed using a web browser. The web display also contains some controllers, like changing the pen color and so on.

Web Application display

The application is written in golang. It's an event driven application. It uses webSockets to keep the web display in sync, and a web application to handle requests from the web client.

Demo

Source COde Tutorial

I wrote a blog post series with a tutorial to guide how to build this application.

For each post, there is a coresponding tag with the relevant code: