Resolve problems with examples not compiling or otherwise not functioning.

This commit is contained in:
nick6x
2016-08-22 01:40:27 -07:00
parent f369c2ff9a
commit 4f30789e88
6 changed files with 26 additions and 27 deletions

View File

@@ -56,16 +56,16 @@ void loop() {
if(x == -1) {
for(x = 0; x < SIZE; x++) {
if(mode == 4) {
sample1 = analogRead(0);
sample1 = analogRead(2);
sound[x] = sample1 >> 4;
delayMicroseconds(RATE); x++;
sample1 = analogRead(0);
sample1 = analogRead(2);
sound[x] = (sample1 & 0xF0) | sound[x];
delayMicroseconds(RATE);
} else {
sound[x] = analogRead(0);
sound[x] = analogRead(2);
delayMicroseconds(RATE); x++;
sound[x] = analogRead(0);
sound[x] = analogRead(2);
delayMicroseconds(RATE);
}
}