From 49170f86e2417807a415d089b782ec1fb00aec75 Mon Sep 17 00:00:00 2001 From: Leandro Estrella rPi Date: Sat, 5 Oct 2019 16:03:26 +0200 Subject: [PATCH] add keys in processing --- ephimera/ephimera.pde | 16 ++++++++++++++++ ephimera/serial.pde | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) mode change 100755 => 100644 ephimera/serial.pde diff --git a/ephimera/ephimera.pde b/ephimera/ephimera.pde index 4b2d253..352c0ad 100644 --- a/ephimera/ephimera.pde +++ b/ephimera/ephimera.pde @@ -57,6 +57,7 @@ void draw() { } void keyPressed() { + println(int(key)); if (key == 'S' || key == 's') { video.pause(); makePicture(); @@ -67,4 +68,19 @@ void keyPressed() { if (key == 'G' || key == 'g') { video.start(); } + + if (key == 'U' || key == 'u') { + sendMessage(C_TAG, colorByteValues); + } + + if (key == '1' || key == '2' || key == 3 || key == 4 || key == 5 || key == 6 || key == 7 || key == 8) { + for(int i = 0; i