Skip to content

Instantly share code, notes, and snippets.

@frogwoo
Created August 30, 2016 20:19
Show Gist options
  • Save frogwoo/ac96241cb2f98ccc67db6336c366238b to your computer and use it in GitHub Desktop.
Save frogwoo/ac96241cb2f98ccc67db6336c366238b to your computer and use it in GitHub Desktop.
Simple control of the Pi-Lite HAT with Processing
import processing.serial.*;
Serial port;
String portID = "/dev/ttyAMA0";
void setup() {
size(100,100);
background(255)
port = new Serial(this,portID,9600);
}
void draw() {
port.write("Hello world.");
noLoop();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment