Created
August 30, 2016 20:19
-
-
Save frogwoo/ac96241cb2f98ccc67db6336c366238b to your computer and use it in GitHub Desktop.
Simple control of the Pi-Lite HAT with Processing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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