We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f57f3fc + c35258a commit 30f2477Copy full SHA for 30f2477
libraries/Camera/extras/CameraRawBytesVisualizer/CameraRawBytesVisualizer.pde
@@ -17,7 +17,7 @@ final int cameraWidth = 320;
17
final int cameraHeight = 240;
18
19
// Must match the image mode in the Arduino sketch
20
-final boolean useGrayScale = true;
+boolean useGrayScale = true;
21
22
// Must match the baud rate in the Arduino sketch
23
final int baudRate = 115200;
@@ -120,3 +120,9 @@ void serialEvent(Serial myPort) {
120
// and are ready for the next frame
121
myPort.write(1);
122
}
123
+
124
+void keyPressed() {
125
+ if (key == ' ') {
126
+ useGrayScale = !useGrayScale; // change boolean value of greyscale when space is pressed
127
+ }
128
+}
0 commit comments