mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
12 lines
173 B
Plaintext
12 lines
173 B
Plaintext
import processing.io.*;
|
|
MCP3001 adc;
|
|
|
|
void setup() {
|
|
//printArray(SPI.list());
|
|
adc = new MCP3001(SPI.list()[0]);
|
|
}
|
|
|
|
void draw() {
|
|
background(adc.getAnalog() * 255);
|
|
}
|