I hereby claim:
- I am brian-lc on github.
- I am brianlctw (https://keybase.io/brianlctw) on keybase.
- I have a public key ASAHQgHJWIX9DYjFbJeGfmwCdCXyUNLwH-zI4jao0IrdIQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| private func doDataPult() { | |
| playWaitingAnimation.toggle() | |
| filename = imageUrl.lastPathComponent | |
| let cardPost = CardPost(title: title, descr: descr, filename: filename, file: image.jpegData(compressionQuality: 1.0)!) | |
| guard let uploadData = try? JSONEncoder().encode(cardPost) else { | |
| return | |
| } |
| This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
| ✅ did:3:bafyreigj77njq6gkq2gdcdq3t4yidfj6waxtzdj3odishz4tftulb5wrl4 ✅ | |
| Create your profile today to start building social connection and trust online at https://3Box.io/ |
| // Use the STARTUP() macro to set the default antenna | |
| STARTUP(WiFi.selectAntenna(ANT_EXTERNAL); // selects the u.FL antenna | |
| void setup() | |
| { | |
| Serial.begin(9600); | |
| } | |
| void loop(){ | |
| #define DEFAULT_SLEEP = 1000; //number of seconds of slee. | |
| class ParticleInfo { | |
| public: | |
| String deviceID; | |
| long sleepTime; | |
| ParticleInfo(long sleep){ | |
| sleepTime = sleep; |
| #define WAKESTATE = 1; | |
| #define SLEEPSTATE = 0; | |
| #define ERRORSTATE = -1; | |
| // Sensor codes | |
| #define ID_CMD = 'I'; | |
| #define LED_CMD = 'L'; | |
| #define READ_CMD = 'R'; | |
| #define SLEEP_CMD = 'Sleep'; |
| // Auto generated | |
| int frame_count = 52864; | |
| const uint16_t wave_data[52864] = | |
| {0x0800,0x07ff,0x0800,0x0800,0x07ff,0x0800,0x07ff,0x0800,0x07ff,0x0800,0x0800,0x07ff,0x0800,0x07ff,0x0800,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff, | |
| 0x07ff,0x07ff,0x07ff,0x07ff,0x07fe,0x07ff,0x07fe,0x07ff,0x07fe,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x07ff,0x0800,0x07ff,0x0800,0x07ff,0x0800,0x07ff,0x07ff,0x0800,0x07ff, | |
| 0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x07ff,0x0800,0x07ff,0x0800,0x0800,0x07ff,0x0800,0x07ff,0x0800,0x07ff,0x0800, | |
| 0x0800,0x07ff,0x0800,0x07ff,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0800,0x0801,0x0801,0x0801,0x0801,0x0801,0x0801,0x0801,0x0801,0x0801,0x0801,0x0801,0x0802,0x0802,0x0802,0x0802,0x0802, | |
| 0x0802,0x0802,0x0802,0x0802,0x0802,0x0802,0x0802,0x0802,0x0802,0x0802,0x0802,0x0802,0x0802,0x0802,0x |
| /*************************************************** | |
| This is a library for the Adafruit TPA2016D2 Class D Amplifier Breakout | |
| Pick one up today in the adafruit shop! | |
| ------> http://www.adafruit.com/products/1712 | |
| This amplifier uses I2C to communicate, 2 pins are required to interface | |
| Check out the links above for our tutorials and wiring diagrams |
| /*************************************************** | |
| This is a library for the Adafruit TPA2016D2 Class D Amplifier Breakout | |
| Pick one up today in the adafruit shop! | |
| ------> http://www.adafruit.com/products/1712 | |
| This amplifier uses I2C to communicate, 2 pins are required to interface | |
| Check out the links above for our tutorials and wiring diagrams |
| #include "neopixel/neopixel.h" | |
| #include "SparkIntervalTimer/SparkIntervalTimer.h" | |
| #include "Adafruit_TPA2016.h" | |
| #include "wave_data.h" | |
| #include "math.h" | |
| // Config Values | |
| #define AUDIO_FREQ 44 //44usec ~22,050hz | |
| #define SAMP_FREQ 260 // ~3.84kHz - 64 samples per 60hz cycle | |
| #define ADC_SAMPLES 256 // 4 full cycles captured (256 makes sample division a bit shift operation) |