Backend for ACM Pixel.
It works by loading the Linux Framebuffer (located in /dev/fb0) into system memory so we can quickly edit the pixels on the screen. It uses sockets to listen to incoming requests.
To POST
Curl:
curl -X POST -d 'x=?&y=?&r=?&g=?&b=?' pixel.acm.illinois.edu (Or Local IP if running locally)
Python Requests:
import requests
requests.post(url = url, params = {'x' : ?, 'y' : ?, 'r' : ?, 'g' : ?, 'b' : ?})
POST Renders a pixel with specified pixel color, at the given x and y coordinates. Request body: x: 0-128 y: 0-128 r: 0-255 g: 0-255 b: 0-255
GET /state.jpg
Fetches a screenshot of the Pixel display.