Finished snake

This commit is contained in:
plane000
2018-06-17 08:25:27 +01:00
parent 3865ebe3a9
commit daf0db65fa
5 changed files with 113 additions and 44 deletions

View File

@@ -17,8 +17,8 @@ void setup() {
void draw() {
float vol = analyzer.analyze();
float normal = 10+vol*200;
int out = int(map(normal, 0, 60, 0, 11));
int out = int(map(10+vol*200, 0, 100, 0, 11));
println(out);
port.write(Integer.toString(out));
port.write(" ");
}