FastLED 3.9.15
Loading...
Searching...
No Matches

◆ ReadAudio()

void ReadAudio ( )

Definition at line 270 of file funky.cpp.

270 {
271 digitalWrite(MSGEQ7_RESET_PIN, HIGH);
272 digitalWrite(MSGEQ7_RESET_PIN, LOW);
273 for (byte band = 0; band < 7; band++) {
274 digitalWrite(MSGEQ7_STROBE_PIN, LOW);
275 delayMicroseconds(30);
276 left[band] = analogRead(AUDIO_LEFT_PIN);
277 right[band] = analogRead(AUDIO_RIGHT_PIN);
278 digitalWrite(MSGEQ7_STROBE_PIN, HIGH);
279 }
280}
#define MSGEQ7_RESET_PIN
Definition defs.h:21
#define AUDIO_RIGHT_PIN
Definition defs.h:23
#define MSGEQ7_STROBE_PIN
Definition defs.h:20
#define AUDIO_LEFT_PIN
Definition defs.h:22
int right[7]
Definition funky.cpp:79
int left[7]
Definition funky.cpp:78

References AUDIO_LEFT_PIN, AUDIO_RIGHT_PIN, left, MSGEQ7_RESET_PIN, MSGEQ7_STROBE_PIN, and right.

Referenced by Audio1(), Audio2(), Audio3(), Audio4(), Audio5(), Audio6(), AudioSpiral(), CaleidoTest1(), CaleidoTest2(), CopyTest(), CopyTest2(), MSGEQtest(), MSGEQtest2(), MSGEQtest3(), MSGEQtest4(), MSGEQtest5(), MSGEQtest6(), MSGEQtest7(), MSGEQtest8(), MSGEQtest9(), NoiseExample5(), and SpeedTest().

+ Here is the caller graph for this function: