This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple strand test for Adafruit Dot Star RGB LED strip. | |
// This is a basic diagnostic tool, NOT a graphics demo...helps confirm | |
// correct wiring and tests each pixel's ability to display red, green | |
// and blue and to forward data down the line. By limiting the number | |
// and color of LEDs, it's reasonably safe to power a couple meters off | |
// the Arduino's 5V pin. DON'T try that with other code! | |
#include <Adafruit_DotStar.h> | |
// Because conditional #includes don't work w/Arduino sketches... | |
#include <SPI.h> // COMMENT OUT THIS LINE FOR GEMMA OR TRINKET |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MICROPHONE_PIN A5 | |
#define AUDIO_BUFFER_MAX 8192 | |
int audioStartIdx = 0, audioEndIdx = 0; | |
uint16_t audioBuffer[AUDIO_BUFFER_MAX]; | |
uint16_t txBuffer[AUDIO_BUFFER_MAX]; | |
// version without timers | |
unsigned long lastRead = micros(); | |
char myIpAddress[24]; |