Added all files to git.
This commit is contained in:
1 parent
02c627060f
commit
1e8fa43794
3 files changed
+18178
No files matched your search
+625
@@ -0,0 +1,625 @@
|
||||
/*
|
||||
* ------------------------------------------------------------
|
||||
* "THE BEERWARE LICENSE" (Revision 42):
|
||||
* DerGrubengräber / Carl Hinze wrote this code. As long as you retain this
|
||||
* notice, you can do whatever you want with this stuff. If we
|
||||
* meet someday, and you think this stuff is worth it, you can
|
||||
* buy me a beer in return.
|
||||
* ------------------------------------------------------------
|
||||
*/
|
||||
#include <JPEGDEC.h>
|
||||
#include <WiFi.h>
|
||||
#include <WiFiClientSecure.h>
|
||||
#include <ESP32-HUB75-MatrixPanel-I2S-DMA.h>
|
||||
#include <JPEGDEC.h>
|
||||
#include <HTTPClient.h>
|
||||
#include <string.h>
|
||||
#include <Preferences.h>
|
||||
#include <Arduino_JSON.h>
|
||||
#include <AnimatedGIF.h>
|
||||
#include <BH1750.h>
|
||||
#include <Wire.h>
|
||||
#include "idle_gif.h"
|
||||
#include "birthday_gif.h"
|
||||
#include <WiFiUdp.h>
|
||||
#include <NTP.h>
|
||||
#include "secrets.h"
|
||||
#include <mbedtls/base64.h>
|
||||
|
||||
// What the fuck was the best way to declare variables again?
|
||||
// Do i care about optimizing with defines, idk man
|
||||
|
||||
volatile bool switchState = 0;
|
||||
|
||||
// Time things
|
||||
WiFiUDP wifiUdp;
|
||||
NTP ntp(wifiUdp);
|
||||
|
||||
// Light sensor
|
||||
BH1750 GY302;
|
||||
float lux = 1.00f;
|
||||
// ADC / Brightness type shit
|
||||
const int potPin = GPIO_NUM_6;
|
||||
int adcResult = 0;
|
||||
uint8_t targetBrightness = 255;
|
||||
#define NUM_SAMPLES 64
|
||||
// Gang i don't know
|
||||
JPEGDEC jpeg;
|
||||
volatile bool playing = false;
|
||||
volatile bool paused = false;
|
||||
// Do i even still need that?
|
||||
SemaphoreHandle_t albumArtMutex = xSemaphoreCreateMutex();
|
||||
#define MUTEX_TIMEOUT 5000
|
||||
uint16_t albumArt[64 * 64];
|
||||
float rotation = 0.0;
|
||||
|
||||
const float ROTATION_SPEED = 0.5f;
|
||||
|
||||
Preferences preferences;
|
||||
|
||||
// Task handles in case i need them again
|
||||
TaskHandle_t taskSpotifyHandle;
|
||||
TaskHandle_t taskPanelHandle;
|
||||
TaskHandle_t taskIOHandle;
|
||||
|
||||
|
||||
|
||||
|
||||
AnimatedGIF gif;
|
||||
uint16_t idleGifBuffer[64 * 64];
|
||||
|
||||
|
||||
// Spotify API
|
||||
String access_token = "";
|
||||
const String refresh_token = SPOTIFY_REFRESH_TOKEN;
|
||||
const String encoded = SPOTIFY_ENCODED;
|
||||
|
||||
|
||||
String urlPrev = "";
|
||||
String url;
|
||||
|
||||
// Wifi
|
||||
const char *ssid = WIFI_SSID;
|
||||
const char *password = WIFI_PASSWORD;
|
||||
|
||||
// LED Matrix
|
||||
#define PANEL_RES_X 64 // Number of pixels wide of each INDIVIDUAL panel module.
|
||||
#define PANEL_RES_Y 64 // Number of pixels tall of each INDIVIDUAL panel module.
|
||||
#define PANEL_CHAIN 1 // Total number of panels chained one to another horizontally only.
|
||||
|
||||
MatrixPanel_I2S_DMA *dma_display = nullptr;
|
||||
|
||||
uint16_t myBLACK;
|
||||
uint16_t myWHITE;
|
||||
uint16_t myRED;
|
||||
uint16_t myGREEN;
|
||||
uint16_t myBLUE;
|
||||
|
||||
int x_offset, y_offset;
|
||||
|
||||
#define R1_PIN GPIO_NUM_46 //B0
|
||||
#define G1_PIN GPIO_NUM_21 //D10
|
||||
#define B1_PIN GPIO_NUM_1 //A0
|
||||
#define R2_PIN GPIO_NUM_18 //D9
|
||||
#define G2_PIN GPIO_NUM_2 //A1
|
||||
#define B2_PIN GPIO_NUM_17 //D8
|
||||
#define A_PIN GPIO_NUM_10 //D7
|
||||
#define B_PIN GPIO_NUM_4 //A3
|
||||
#define C_PIN GPIO_NUM_9 //D6
|
||||
#define D_PIN GPIO_NUM_11 //A4
|
||||
#define E_PIN GPIO_NUM_3 // required for 1/32 scan panels, like 64x64px. Any available pin would do, i.e. IO32 A2
|
||||
#define LAT_PIN GPIO_NUM_12 // A5
|
||||
#define OE_PIN GPIO_NUM_7 // D4
|
||||
#define CLK_PIN GPIO_NUM_8 // D5
|
||||
|
||||
HUB75_I2S_CFG::i2s_pins _pins = { R1_PIN, G1_PIN, B1_PIN, R2_PIN, G2_PIN, B2_PIN, A_PIN, B_PIN, C_PIN, D_PIN, E_PIN, LAT_PIN, OE_PIN, CLK_PIN };
|
||||
|
||||
void setupSwitch() {
|
||||
pinMode(GPIO_NUM_0, OUTPUT);
|
||||
digitalWrite(GPIO_NUM_0, HIGH);
|
||||
pinMode(GPIO_NUM_5, INPUT);
|
||||
}
|
||||
|
||||
void setupLightSensor() {
|
||||
Wire.begin(GPIO_NUM_14, GPIO_NUM_13);
|
||||
GY302.begin();
|
||||
}
|
||||
|
||||
void connectWifi() {
|
||||
WiFi.mode(WIFI_STA); //Optional
|
||||
WiFi.begin(ssid, password);
|
||||
Serial.println("\nConnecting");
|
||||
|
||||
while (WiFi.status() != WL_CONNECTED) {
|
||||
Serial.print(".");
|
||||
delay(100);
|
||||
}
|
||||
|
||||
Serial.println("\nConnected to the WiFi network");
|
||||
Serial.print("Local ESP32 IP: ");
|
||||
Serial.println(WiFi.localIP());
|
||||
}
|
||||
|
||||
void loadPreferences() { // Doesn't really make sense anymore.
|
||||
Serial.println("Loading Preferences...");
|
||||
preferences.begin("spotify", false);
|
||||
access_token = preferences.getString("Access", "");
|
||||
//refresh_token = preferences.getString("Refresh", "");
|
||||
preferences.end();
|
||||
Serial.println("Preferences loaded.");
|
||||
}
|
||||
|
||||
void setupPanel() {
|
||||
HUB75_I2S_CFG mxconfig(
|
||||
PANEL_RES_X, // module width
|
||||
PANEL_RES_Y, // module height
|
||||
PANEL_CHAIN // Chain of panels - Horizontal width only.
|
||||
,
|
||||
_pins);
|
||||
mxconfig.double_buff = true;
|
||||
dma_display = new MatrixPanel_I2S_DMA(mxconfig);
|
||||
dma_display->begin();
|
||||
dma_display->setBrightness8(targetBrightness); //0-255
|
||||
dma_display->flipDMABuffer();
|
||||
delay(1000 / dma_display->calculated_refresh_rate);
|
||||
myBLACK = dma_display->color565(0, 0, 0);
|
||||
myWHITE = dma_display->color565(255, 255, 255);
|
||||
myRED = dma_display->color565(255, 0, 0);
|
||||
myGREEN = dma_display->color565(0, 255, 0);
|
||||
myBLUE = dma_display->color565(0, 0, 255);
|
||||
dma_display->clearScreen();
|
||||
dma_display->println("Booting...");
|
||||
dma_display->flipDMABuffer();
|
||||
delay(1000 / dma_display->calculated_refresh_rate);
|
||||
}
|
||||
|
||||
struct JPEGTuple {
|
||||
uint8_t *address;
|
||||
size_t size;
|
||||
};
|
||||
|
||||
struct JPEGTuple downloadJPEG(String url) {
|
||||
Serial.println("Downloading: " + url);
|
||||
WiFiClientSecure client;
|
||||
client.setInsecure();
|
||||
HTTPClient http;
|
||||
http.setTimeout(15000);
|
||||
http.begin(client, url);
|
||||
int httpReturnCode = http.GET();
|
||||
if (httpReturnCode != 200) {
|
||||
Serial.println("Image Download aborted with code " + httpReturnCode);
|
||||
return { nullptr, 0 };
|
||||
}
|
||||
Serial.println(httpReturnCode);
|
||||
int contentLength = http.getSize();
|
||||
if (contentLength <= 0) {
|
||||
Serial.println("Invalid or unknown content length.");
|
||||
http.end();
|
||||
return { nullptr, 0 };
|
||||
}
|
||||
Serial.println("Size is: " + String(contentLength));
|
||||
uint8_t *jpegBuffer = (uint8_t *)heap_caps_malloc(contentLength, MALLOC_CAP_SPIRAM | MALLOC_CAP_8BIT);
|
||||
if (!jpegBuffer) {
|
||||
Serial.println("Malloc failed.");
|
||||
http.end();
|
||||
return { nullptr, 0 };
|
||||
}
|
||||
WiFiClient &stream = http.getStream();
|
||||
size_t downloadedData = 0;
|
||||
Serial.println("Downloading");
|
||||
unsigned long timeoutStart = millis();
|
||||
while (downloadedData < contentLength && http.connected()) {
|
||||
size_t sizeAvailable = stream.available();
|
||||
if (sizeAvailable) {
|
||||
size_t bytesRead = stream.readBytes(&jpegBuffer[downloadedData], min(sizeAvailable, (size_t)(contentLength - downloadedData)));
|
||||
downloadedData += bytesRead;
|
||||
timeoutStart = millis();
|
||||
Serial.println(downloadedData + String("B"));
|
||||
} else {
|
||||
if (millis() - timeoutStart > 5000) {
|
||||
Serial.println("Download timeout.");
|
||||
break;
|
||||
}
|
||||
delay(1);
|
||||
}
|
||||
}
|
||||
http.end();
|
||||
//delete client;
|
||||
if (downloadedData != contentLength) {
|
||||
Serial.println("Incomplete JPEG download!");
|
||||
free(jpegBuffer);
|
||||
return { nullptr, 0 };
|
||||
}
|
||||
Serial.println("Download completed. Size was: " + downloadedData);
|
||||
return { jpegBuffer, downloadedData };
|
||||
}
|
||||
|
||||
|
||||
int storeJPEG(JPEGDRAW *pDraw) {
|
||||
xSemaphoreTake(albumArtMutex, portMAX_DELAY);
|
||||
for (int y = 0; y < pDraw->iHeight; y++) {
|
||||
int destY = pDraw->y + y;
|
||||
|
||||
if (destY < 0 || destY >= 64)
|
||||
continue;
|
||||
|
||||
for (int x = 0; x < pDraw->iWidth; x++) {
|
||||
int destX = pDraw->x + x;
|
||||
|
||||
if (destX < 0 || destX >= 64)
|
||||
continue;
|
||||
|
||||
// Compression kept giving me extremely dark artifacts which were visible on the Matrix tho so i added this threshhold. Adjust if it kills shadows etc.
|
||||
uint16_t color = pDraw->pPixels[y * pDraw->iWidthUsed + x];
|
||||
|
||||
uint8_t r = (color >> 11) & 0x1F;
|
||||
uint8_t g = (color >> 5) & 0x3F;
|
||||
uint8_t b = color & 0x1F;
|
||||
|
||||
if (r <= 2 && g <= 3 && b <= 2) {
|
||||
color = 0;
|
||||
}
|
||||
|
||||
albumArt[destY * 64 + destX] = color;
|
||||
}
|
||||
}
|
||||
xSemaphoreGive(albumArtMutex);
|
||||
return 1;
|
||||
}
|
||||
|
||||
bool decodeJPEG(uint8_t *jpegData, size_t jpegSize) {
|
||||
xSemaphoreTake(albumArtMutex, portMAX_DELAY);
|
||||
memset(albumArt, 0, sizeof(albumArt));
|
||||
xSemaphoreGive(albumArtMutex);
|
||||
if (!jpeg.openRAM(jpegData, jpegSize, storeJPEG)) {
|
||||
Serial.printf(
|
||||
"JPEG open failed, error = %d\n",
|
||||
jpeg.getLastError());
|
||||
return false;
|
||||
}
|
||||
bool result = jpeg.decode(0, 0, 0);
|
||||
jpeg.close();
|
||||
|
||||
if (!result) {
|
||||
Serial.printf(
|
||||
"JPEG decode failed, error = %d\n",
|
||||
jpeg.getLastError());
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void drawCD(float angle) {
|
||||
dma_display->clearScreen();
|
||||
const int cx = 31;
|
||||
const int cy = 31;
|
||||
const float cosA = cos(angle);
|
||||
const float sinA = sin(angle);
|
||||
const int radius = 31;
|
||||
const int radiusSquared = radius * radius;
|
||||
xSemaphoreTake(albumArtMutex, portMAX_DELAY);
|
||||
for (int y = 0; y < 64; y++) {
|
||||
for (int x = 0; x < 64; x++) {
|
||||
int dx = x - cx;
|
||||
int dy = y - cy;
|
||||
|
||||
if ((dx * dx + dy * dy) > radiusSquared)
|
||||
continue;
|
||||
|
||||
float srcX = cosA * dx + sinA * dy + cx;
|
||||
float srcY = -sinA * dx + cosA * dy + cy;
|
||||
|
||||
int sx = (int)srcX;
|
||||
int sy = (int)srcY;
|
||||
|
||||
if (sx < 0 || sx >= 64 || sy < 0 || sy >= 64)
|
||||
continue;
|
||||
// Ugly af but idk how to do it without redoing all the math
|
||||
if ((x == 0 && y == 31) || (x == 31 && y == 0) || (x == 31 && y == 62) || (x == 62 && y == 31)) {
|
||||
continue;
|
||||
}
|
||||
uint16_t color = albumArt[sy * 64 + sx];
|
||||
dma_display->drawPixel(x, y, color);
|
||||
}
|
||||
}
|
||||
xSemaphoreGive(albumArtMutex);
|
||||
// Center hole
|
||||
const int holeRadius = 4;
|
||||
|
||||
for (int y = cy - holeRadius; y <= cy + holeRadius; y++) {
|
||||
for (int x = cx - holeRadius; x <= cx + holeRadius; x++) {
|
||||
|
||||
int dx = x - cx;
|
||||
int dy = y - cy;
|
||||
/*if ((x == 31 && y == 27) || (x == 31 && y == 35) || (x == 27 && y == 31) || (x == 35 && y == 31)){
|
||||
continue;
|
||||
} */
|
||||
if (dx * dx + dy * dy <= holeRadius * holeRadius) {
|
||||
dma_display->drawPixel(x, y, myBLACK);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Small center spindle
|
||||
dma_display->drawPixel(cx, cy, myWHITE);
|
||||
|
||||
dma_display->flipDMABuffer();
|
||||
}
|
||||
|
||||
void GIFDraw(GIFDRAW *pDraw) {
|
||||
const uint8_t *src = pDraw->pPixels;
|
||||
const uint16_t *palette = pDraw->pPalette;
|
||||
|
||||
int y = pDraw->iY + pDraw->y;
|
||||
int xStart = pDraw->iX;
|
||||
|
||||
if (y < 0 || y >= 64) return;
|
||||
for (int x = 0; x < pDraw->iWidth; x++) {
|
||||
int destX = xStart + x;
|
||||
|
||||
if (destX < 0 || destX >= 64) continue;
|
||||
|
||||
uint8_t colorIndex = src[x];
|
||||
|
||||
if (pDraw->ucHasTransparency && colorIndex == pDraw->ucTransparent) {
|
||||
continue;
|
||||
}
|
||||
idleGifBuffer[y * 64 + destX] = palette[colorIndex];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void refreshToken() {
|
||||
Serial.println("Refreshing Token...");
|
||||
HTTPClient http;
|
||||
http.begin("https://accounts.spotify.com/api/token");
|
||||
http.addHeader("Content-Type", "application/x-www-form-urlencoded");
|
||||
http.addHeader("Authorization", "Basic " + encoded);
|
||||
int httpResponseCode = http.POST("grant_type=refresh_token&refresh_token=" + refresh_token + "&client_id=" + SPOTIFY_CLIENT_ID);
|
||||
if (httpResponseCode > 0) {
|
||||
Serial.print("HTTP Response code: ");
|
||||
Serial.println(httpResponseCode);
|
||||
JSONVar payload = JSON.parse(http.getString());
|
||||
access_token = String(payload["access_token"]);
|
||||
preferences.begin("spotify", false);
|
||||
preferences.putString("Access", access_token);
|
||||
preferences.end();
|
||||
} else {
|
||||
Serial.print("Failed refresh with Error code: ");
|
||||
Serial.println(httpResponseCode);
|
||||
Serial.println(http.errorToString(httpResponseCode));
|
||||
}
|
||||
http.end();
|
||||
}
|
||||
|
||||
|
||||
String getTrack() {
|
||||
HTTPClient http;
|
||||
http.begin("https://api.spotify.com/v1/me/player/currently-playing");
|
||||
http.addHeader("Authorization", "Bearer " + access_token);
|
||||
int httpResponseCode = http.GET();
|
||||
if (httpResponseCode > 0) {
|
||||
//String payload = http.getString();
|
||||
if (httpResponseCode == 200) {
|
||||
String payload = http.getString();
|
||||
http.end();
|
||||
JSONVar JSONPayload = JSON.parse(payload);
|
||||
paused = !JSONPayload["is_playing"];
|
||||
playing = true;
|
||||
return String(JSONPayload["item"]["album"]["images"][2]["url"]);
|
||||
|
||||
} else if (httpResponseCode == 401) {
|
||||
Serial.println("Token expired!");
|
||||
http.end();
|
||||
return "EXPIRED";
|
||||
} else if (httpResponseCode == 204) {
|
||||
http.end();
|
||||
Serial.println("Nothing Playing.");
|
||||
return "NOTHING";
|
||||
} else {
|
||||
String payload = http.getString();
|
||||
http.end();
|
||||
Serial.print("Unhandled response. ");
|
||||
Serial.println(payload);
|
||||
return "ERROR";
|
||||
}
|
||||
} else {
|
||||
Serial.print("Failed to get track with Error code: ");
|
||||
Serial.println(httpResponseCode);
|
||||
Serial.println(http.errorToString(httpResponseCode));
|
||||
http.end();
|
||||
return "ERROR";
|
||||
}
|
||||
}
|
||||
|
||||
void spotifyTask(void *parameter) {
|
||||
while (true) {
|
||||
if (lux > 0.00 || switchState) {
|
||||
url = getTrack();
|
||||
if (url == "EXPIRED") {
|
||||
refreshToken();
|
||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||||
continue;
|
||||
}
|
||||
if (url == "ERROR" || url == "NOTHING") {
|
||||
playing = false;
|
||||
} else if (urlPrev != url) {
|
||||
urlPrev = url;
|
||||
JPEGTuple buffer = downloadJPEG(url);
|
||||
|
||||
if (buffer.address != nullptr) {
|
||||
if (decodeJPEG(buffer.address, buffer.size)) {
|
||||
Serial.println("Album art loaded.");
|
||||
}
|
||||
heap_caps_free(buffer.address);
|
||||
}
|
||||
}
|
||||
}
|
||||
vTaskDelay(1000 / portTICK_PERIOD_MS);
|
||||
}
|
||||
}
|
||||
void panelTask(void *parameter) {
|
||||
const TickType_t framePeriod = pdMS_TO_TICKS(33);
|
||||
;
|
||||
String time = ntp.formattedTime("%m%e");
|
||||
if (time == String("11 1")) {
|
||||
Serial.println("HAPPY BIRTHDAY");
|
||||
if (gif.open((uint8_t *)birthday_gif, sizeof(birthday_gif), GIFDraw)) {
|
||||
int start = millis();
|
||||
Serial.printf("Successfully opened GIF; Canvas size = %d x %d\n", gif.getCanvasWidth(), gif.getCanvasHeight());
|
||||
while (millis() - start < 5000) {
|
||||
dma_display->setBrightness(targetBrightness);
|
||||
while (gif.playFrame(true, NULL)) {
|
||||
dma_display->clearScreen();
|
||||
for (int y = 0; y < 64; y++) {
|
||||
for (int x = 0; x < 64; x++) {
|
||||
dma_display->drawPixel(x, y, idleGifBuffer[y * 64 + x]);
|
||||
}
|
||||
}
|
||||
dma_display->flipDMABuffer();
|
||||
}
|
||||
gif.reset();
|
||||
}
|
||||
}
|
||||
}
|
||||
TickType_t lastWake = xTaskGetTickCount();
|
||||
TickType_t previousFrame = lastWake;
|
||||
while (true) {
|
||||
TickType_t now = xTaskGetTickCount();
|
||||
float deltaTime = (now - previousFrame) * portTICK_PERIOD_MS / 1000.0f;
|
||||
previousFrame = now;
|
||||
if (lux > 0.00 || switchState) {
|
||||
dma_display->setBrightness(targetBrightness);
|
||||
if (!playing) {
|
||||
Serial.println("Entering Idle.");
|
||||
if (gif.open((uint8_t *)idle_gif, sizeof(idle_gif), GIFDraw)) {
|
||||
Serial.printf("Successfully opened GIF; Canvas size = %d x %d\n", gif.getCanvasWidth(), gif.getCanvasHeight());
|
||||
while (!playing) {
|
||||
if (lux == 0.00 && !switchState) {
|
||||
break;
|
||||
}
|
||||
dma_display->setBrightness(targetBrightness);
|
||||
while (gif.playFrame(true, NULL)) {
|
||||
dma_display->clearScreen();
|
||||
for (int y = 0; y < 64; y++) {
|
||||
for (int x = 0; x < 64; x++) {
|
||||
dma_display->drawPixel(x, y, idleGifBuffer[y * 64 + x]);
|
||||
}
|
||||
}
|
||||
dma_display->flipDMABuffer();
|
||||
}
|
||||
gif.reset();
|
||||
}
|
||||
}
|
||||
Serial.println("Closing Gif.");
|
||||
gif.close();
|
||||
lastWake = xTaskGetTickCount();
|
||||
drawCD(0); //So it doesn't get stuck on the last frame of the gif if paused
|
||||
continue;
|
||||
}
|
||||
if (!paused && playing) {
|
||||
rotation += ROTATION_SPEED * deltaTime;
|
||||
if (rotation >= TWO_PI)
|
||||
rotation -= TWO_PI;
|
||||
drawCD(rotation);
|
||||
}
|
||||
} else {
|
||||
dma_display->clearScreen();
|
||||
dma_display->flipDMABuffer();
|
||||
}
|
||||
vTaskDelayUntil(&lastWake, framePeriod);
|
||||
}
|
||||
}
|
||||
|
||||
void iOTask(void *parameter) {
|
||||
TickType_t lastWake = xTaskGetTickCount();
|
||||
while (true) {
|
||||
switchState = digitalRead(GPIO_NUM_5);
|
||||
lux = GY302.readLightLevel();
|
||||
if (lux < 0) { //This needs proper error handling.
|
||||
lux = 1;
|
||||
}
|
||||
/*
|
||||
Serial.print("Light: ");
|
||||
Serial.print(lux);
|
||||
Serial.print(" lx");
|
||||
Serial.print("Switch is: ");
|
||||
Serial.println(switchState); */
|
||||
uint32_t adcSum = 0;
|
||||
for (int i = 0; i < NUM_SAMPLES; i++) {
|
||||
adcSum += analogRead(potPin);
|
||||
}
|
||||
adcResult = adcSum / NUM_SAMPLES;
|
||||
if (adcResult <= 10) {
|
||||
adcResult = 0;
|
||||
}
|
||||
targetBrightness = map(adcResult, 0, 4095, 0, 255);
|
||||
//Serial.print("Pot: ");
|
||||
//Serial.println(adcResult);
|
||||
vTaskDelayUntil(&lastWake, pdMS_TO_TICKS(100));
|
||||
}
|
||||
}
|
||||
|
||||
void setup() {
|
||||
Serial.begin(9600);
|
||||
delay(1000);
|
||||
analogReadResolution(12);
|
||||
setupLightSensor();
|
||||
setupSwitch();
|
||||
setupPanel();
|
||||
loadPreferences();
|
||||
dma_display->clearScreen();
|
||||
dma_display->print("Connecting...");
|
||||
dma_display->flipDMABuffer();
|
||||
connectWifi();
|
||||
ntp.begin();
|
||||
ntp.update();
|
||||
Serial.println(ntp.formattedTime("%m%e"));
|
||||
gif.begin(LITTLE_ENDIAN_PIXELS);
|
||||
// Memory allocation is fine ish, Spotify could prolly do with a kb less.
|
||||
xTaskCreatePinnedToCore(
|
||||
spotifyTask,
|
||||
"SpotifyTask",
|
||||
5120,
|
||||
NULL,
|
||||
1,
|
||||
&taskSpotifyHandle,
|
||||
0);
|
||||
xTaskCreatePinnedToCore(
|
||||
panelTask,
|
||||
"panelTask",
|
||||
2048,
|
||||
NULL,
|
||||
1,
|
||||
&taskPanelHandle,
|
||||
1);
|
||||
xTaskCreatePinnedToCore(
|
||||
iOTask,
|
||||
"IOTask",
|
||||
2048,
|
||||
NULL,
|
||||
1,
|
||||
&taskIOHandle,
|
||||
0);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
|
||||
delay(60000);
|
||||
Serial.println("60 Second Memory Update:");
|
||||
Serial.print("TASK: ");
|
||||
Serial.print(pcTaskGetName(taskPanelHandle)); // Get task name with handler
|
||||
Serial.print(", High Watermark: ");
|
||||
Serial.print(uxTaskGetStackHighWaterMark(taskPanelHandle));
|
||||
Serial.println();
|
||||
Serial.print("TASK: ");
|
||||
Serial.print(pcTaskGetName(taskSpotifyHandle)); // Get task name with handler
|
||||
Serial.print(", High Watermark: ");
|
||||
Serial.print(uxTaskGetStackHighWaterMark(taskSpotifyHandle));
|
||||
Serial.println();
|
||||
Serial.print("TASK: ");
|
||||
Serial.print(pcTaskGetName(taskIOHandle)); // Get task name with handler
|
||||
Serial.print(", High Watermark: ");
|
||||
Serial.print(uxTaskGetStackHighWaterMark(taskIOHandle));
|
||||
Serial.println();
|
||||
}
|
||||
+17433
File diff suppressed because it is too large.
Load diff
+120
@@ -0,0 +1,120 @@
|
||||
//
|
||||
// idle
|
||||
// Data size = 1688 bytes
|
||||
//
|
||||
// GIF, Compression=LZW, Size: 64 x 64, 5-Bpp
|
||||
// 5 frames
|
||||
//
|
||||
// for non-Arduino builds...
|
||||
|
||||
#ifndef PROGMEM
|
||||
#define PROGMEM
|
||||
#endif
|
||||
const uint8_t idle_gif[] PROGMEM = {
|
||||
0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x40, 0x00, 0x40, 0x00, 0xf4, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x49, 0x22, 0x14, 0x48, 0x3f, 0x01, 0x82, 0x42, 0x29, 0x9a, 0x4a, 0x25, 0xd7, 0x71, 0x27, 0xcd,
|
||||
0xc3, 0x79, 0xf2, 0xe8, 0x8a, 0xff, 0xf4, 0xa7, 0xff, 0xf9, 0xd3, 0x61, 0x3c, 0x37, 0x64, 0x43,
|
||||
0x37, 0x24, 0x00, 0x24, 0x47, 0x3f, 0x00, 0xbc, 0x5f, 0x26, 0xaa, 0x7f, 0x5f, 0xe5, 0xa6, 0x68,
|
||||
0xee, 0xbf, 0x82, 0xf6, 0xef, 0xaf, 0xff, 0xfa, 0xd6, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0xff, 0x0b,
|
||||
0x4e, 0x45, 0x54, 0x53, 0x43, 0x41, 0x50, 0x45, 0x32, 0x2e, 0x30, 0x03, 0x01, 0x00, 0x00, 0x00,
|
||||
0x21, 0xff, 0x0b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4d, 0x61, 0x67, 0x69, 0x63, 0x6b, 0x0e, 0x67,
|
||||
0x61, 0x6d, 0x6d, 0x61, 0x3d, 0x30, 0x2e, 0x34, 0x35, 0x34, 0x35, 0x34, 0x35, 0x00, 0x21, 0xfe,
|
||||
0x27, 0x47, 0x49, 0x46, 0x20, 0x63, 0x72, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x20, 0x77, 0x69, 0x74,
|
||||
0x68, 0x20, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x65, 0x7a, 0x67, 0x69, 0x66, 0x2e,
|
||||
0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x72, 0x6f, 0x70, 0x00, 0x21, 0xf9, 0x04, 0x04, 0x32, 0x00, 0xff,
|
||||
0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x40, 0x00, 0x40, 0x00, 0x00, 0x05, 0xff, 0x20, 0x20, 0x8e,
|
||||
0x64, 0x69, 0x9e, 0x68, 0xaa, 0xae, 0x6c, 0xeb, 0xbe, 0x70, 0x2c, 0xcf, 0x74, 0x6d, 0xdf, 0x78,
|
||||
0xae, 0xef, 0x7c, 0xef, 0xff, 0xc0, 0xa0, 0x70, 0x48, 0x2c, 0x1a, 0x8f, 0xc8, 0xa4, 0x72, 0xc9,
|
||||
0x6c, 0x3a, 0x9f, 0xd0, 0xa8, 0x74, 0x4a, 0xad, 0x5a, 0xaf, 0xd8, 0xac, 0x76, 0xcb, 0xed, 0x7a,
|
||||
0xbf, 0xe0, 0xb0, 0x78, 0x5c, 0x0c, 0x98, 0xcd, 0x0c, 0xed, 0xf9, 0xdc, 0x35, 0xf7, 0x1e, 0x01,
|
||||
0x94, 0x60, 0x40, 0x63, 0xd8, 0x79, 0x0f, 0x89, 0x21, 0x5d, 0x62, 0x18, 0x24, 0x0f, 0x32, 0x0c,
|
||||
0x01, 0x7c, 0x2d, 0x0c, 0x0d, 0x6b, 0x89, 0x66, 0x79, 0x7f, 0x7b, 0x24, 0x7e, 0x12, 0x11, 0x07,
|
||||
0x74, 0x2f, 0x8a, 0x85, 0x28, 0x0d, 0x04, 0x0e, 0x0e, 0x91, 0x9b, 0x9b, 0x7f, 0x12, 0x03, 0x12,
|
||||
0x07, 0x10, 0x7f, 0x0f, 0x7c, 0x90, 0x11, 0x10, 0x92, 0x0b, 0x95, 0x89, 0x97, 0x26, 0x01, 0x9b,
|
||||
0x03, 0x03, 0x08, 0x07, 0x0f, 0x0e, 0x04, 0x04, 0x06, 0xb6, 0x0f, 0xa4, 0x10, 0xa5, 0x08, 0x0f,
|
||||
0x0a, 0x0a, 0xbc, 0xaa, 0x10, 0x05, 0x11, 0xad, 0x3e, 0x0f, 0x0f, 0x06, 0x0f, 0x04, 0x03, 0x11,
|
||||
0x08, 0x08, 0x11, 0xb9, 0xbe, 0x03, 0x09, 0xbf, 0x11, 0xc6, 0xd7, 0x07, 0x11, 0xaa, 0x0f, 0xca,
|
||||
0x3e, 0x03, 0x10, 0x12, 0xbd, 0x04, 0x0f, 0xd4, 0xd5, 0x06, 0x0e, 0x11, 0xd9, 0xdf, 0x06, 0x07,
|
||||
0xeb, 0xd6, 0xbb, 0xb6, 0xdc, 0x07, 0xcb, 0x3c, 0x04, 0x05, 0xc1, 0xb7, 0xea, 0xeb, 0x10, 0x18,
|
||||
0x88, 0x50, 0x20, 0x41, 0xc0, 0x80, 0xd6, 0x7c, 0xad, 0xcb, 0xd7, 0x63, 0x80, 0x03, 0x5a, 0x79,
|
||||
0x0e, 0x1e, 0x84, 0xa0, 0x50, 0x62, 0xb5, 0x8a, 0xd4, 0x0e, 0x34, 0xd8, 0x11, 0xa0, 0x19, 0xb4,
|
||||
0x01, 0xbc, 0x2c, 0x52, 0x83, 0xa0, 0xeb, 0x8f, 0xc8, 0x83, 0x1a, 0x77, 0xf0, 0x2c, 0x08, 0x69,
|
||||
0xa0, 0xe5, 0x49, 0x76, 0x2d, 0xcf, 0xbd, 0xcc, 0xb8, 0x31, 0x07, 0xa4, 0x75, 0xa3, 0x5e, 0x1a,
|
||||
0x9c, 0x89, 0xb2, 0x26, 0x8e, 0x00, 0x21, 0x79, 0x0a, 0xb5, 0x98, 0x12, 0x87, 0x9f, 0xa1, 0x27,
|
||||
0x6f, 0x0d, 0x00, 0x48, 0xed, 0x01, 0x48, 0x5b, 0x3e, 0x63, 0x11, 0x58, 0xa0, 0x20, 0x8e, 0x8a,
|
||||
0xa3, 0x48, 0x93, 0xce, 0x03, 0xc7, 0x6b, 0x1e, 0x54, 0x14, 0x0c, 0x34, 0x45, 0x5b, 0x00, 0xab,
|
||||
0x4f, 0xd0, 0xac, 0x27, 0x21, 0x38, 0x38, 0x7b, 0x0a, 0x85, 0x2c, 0x5d, 0xd1, 0x0c, 0x5c, 0x3d,
|
||||
0x8b, 0x56, 0xa4, 0xd7, 0x8c, 0xfa, 0x4e, 0x38, 0x28, 0x20, 0xce, 0x96, 0x01, 0xab, 0xb1, 0xe8,
|
||||
0xd6, 0x9d, 0xc9, 0x30, 0x45, 0x80, 0x02, 0x5e, 0x49, 0x11, 0x20, 0x64, 0x87, 0x01, 0x34, 0x8f,
|
||||
0x77, 0x07, 0xcf, 0x0c, 0xb4, 0x02, 0xe8, 0x37, 0xb5, 0x6b, 0x0d, 0xe8, 0xca, 0xe3, 0x00, 0x82,
|
||||
0x30, 0xc1, 0xeb, 0x12, 0x88, 0xde, 0x89, 0xd6, 0x40, 0xde, 0x14, 0x0b, 0x1e, 0x14, 0xe0, 0x2b,
|
||||
0x49, 0xb5, 0x39, 0x03, 0x4f, 0x9d, 0x59, 0x14, 0x3d, 0x21, 0x81, 0x84, 0xdb, 0xb7, 0xb3, 0x3a,
|
||||
0x6a, 0x11, 0x20, 0xf5, 0x01, 0xa5, 0xea, 0x00, 0x11, 0xf8, 0xed, 0x0c, 0x14, 0xee, 0xd1, 0xc8,
|
||||
0x45, 0xe3, 0x5e, 0x2e, 0x21, 0xf9, 0xed, 0x03, 0x06, 0x04, 0x98, 0x58, 0x40, 0xbd, 0xba, 0xf5,
|
||||
0x05, 0x02, 0x04, 0x2c, 0x80, 0xf8, 0x6c, 0x41, 0x00, 0x05, 0x02, 0xaa, 0x2a, 0x3a, 0x23, 0x60,
|
||||
0x7c, 0xf6, 0xf3, 0xe8, 0xd3, 0x2b, 0xb8, 0xce, 0xbe, 0x3d, 0x75, 0x62, 0xf0, 0xdd, 0xcb, 0x9f,
|
||||
0x4f, 0xbf, 0xbe, 0xfd, 0xfb, 0xf8, 0xf3, 0xeb, 0xdf, 0xcf, 0xbf, 0x7e, 0x08, 0x00, 0x21, 0xff,
|
||||
0x0b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4d, 0x61, 0x67, 0x69, 0x63, 0x6b, 0x0e, 0x67, 0x61, 0x6d,
|
||||
0x6d, 0x61, 0x3d, 0x30, 0x2e, 0x34, 0x35, 0x34, 0x35, 0x34, 0x35, 0x00, 0x21, 0xf9, 0x04, 0x05,
|
||||
0x0a, 0x00, 0x0a, 0x00, 0x2c, 0x04, 0x00, 0x27, 0x00, 0x28, 0x00, 0x17, 0x00, 0x00, 0x05, 0xb2,
|
||||
0xa0, 0x22, 0x8e, 0x64, 0x69, 0x9a, 0x4c, 0xaa, 0xae, 0xea, 0xe9, 0xbe, 0x4a, 0x30, 0x38, 0x8e,
|
||||
0x61, 0xd0, 0x0e, 0xf1, 0xd8, 0x06, 0xec, 0x93, 0x01, 0x1a, 0x81, 0x80, 0x50, 0x0c, 0x87, 0x0a,
|
||||
0x04, 0xe2, 0xf1, 0xfb, 0x2d, 0x1e, 0x0f, 0xe4, 0x41, 0x19, 0x71, 0x28, 0x1e, 0x92, 0xa6, 0xd3,
|
||||
0x20, 0x41, 0x1c, 0xa2, 0xcc, 0x64, 0x24, 0x1a, 0xd1, 0xfa, 0x08, 0x05, 0x88, 0xc1, 0x1b, 0x16,
|
||||
0x29, 0x21, 0x66, 0xd8, 0x6c, 0xc8, 0xf4, 0x1e, 0x4a, 0x87, 0x6c, 0x1c, 0x75, 0x8d, 0x0e, 0x7a,
|
||||
0x7b, 0x66, 0x0b, 0x6b, 0x08, 0x06, 0x6d, 0x81, 0x3f, 0x0c, 0x0f, 0x77, 0x49, 0x07, 0x65, 0x88,
|
||||
0x3f, 0x01, 0x49, 0x23, 0x4a, 0x90, 0x3e, 0x8a, 0x7a, 0x96, 0x9a, 0x71, 0x00, 0x9d, 0x9d, 0x9b,
|
||||
0x3e, 0x9e, 0xa2, 0xa0, 0x2f, 0xa2, 0x9e, 0xa4, 0x2f, 0x01, 0xaa, 0x01, 0x0c, 0xa7, 0xa8, 0x24,
|
||||
0x03, 0xb1, 0x03, 0x50, 0x0f, 0xb1, 0xaf, 0x23, 0x0c, 0x47, 0x4c, 0x07, 0x07, 0x05, 0xb7, 0xb8,
|
||||
0x39, 0x04, 0x6b, 0xbc, 0x35, 0xbf, 0x31, 0x0b, 0x0e, 0x05, 0xbc, 0x06, 0x05, 0xc2, 0x07, 0x04,
|
||||
0xb0, 0xa0, 0xaa, 0x0c, 0xb3, 0x37, 0x3b, 0x87, 0xac, 0x29, 0xa8, 0xab, 0x02, 0x92, 0xab, 0x92,
|
||||
0xa0, 0x21, 0x00, 0x21, 0xff, 0x0b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4d, 0x61, 0x67, 0x69, 0x63,
|
||||
0x6b, 0x0e, 0x67, 0x61, 0x6d, 0x6d, 0x61, 0x3d, 0x30, 0x2e, 0x34, 0x35, 0x34, 0x35, 0x34, 0x35,
|
||||
0x00, 0x21, 0xf9, 0x04, 0x05, 0x32, 0x00, 0x02, 0x00, 0x2c, 0x00, 0x00, 0x15, 0x00, 0x12, 0x00,
|
||||
0x16, 0x00, 0x00, 0x04, 0x3f, 0x90, 0xc9, 0x29, 0x85, 0xbd, 0x38, 0xe8, 0xad, 0xb1, 0xf7, 0xdc,
|
||||
0xf7, 0x31, 0xa1, 0x08, 0x6e, 0xa6, 0x47, 0x06, 0x4c, 0x8a, 0xad, 0x81, 0x9b, 0x75, 0xf2, 0xc5,
|
||||
0x95, 0x26, 0x45, 0xd5, 0x7c, 0xef, 0xff, 0x2f, 0x5d, 0xed, 0x16, 0xab, 0x55, 0x04, 0x0c, 0x40,
|
||||
0x0d, 0x00, 0x68, 0x31, 0x79, 0xac, 0xa7, 0x4c, 0x42, 0x6b, 0xb9, 0x50, 0x28, 0x19, 0x73, 0x2b,
|
||||
0x4d, 0x71, 0xb7, 0x11, 0x00, 0x21, 0xff, 0x0b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4d, 0x61, 0x67,
|
||||
0x69, 0x63, 0x6b, 0x0e, 0x67, 0x61, 0x6d, 0x6d, 0x61, 0x3d, 0x30, 0x2e, 0x34, 0x35, 0x34, 0x35,
|
||||
0x34, 0x35, 0x00, 0x21, 0xf9, 0x04, 0x05, 0x0a, 0x00, 0x0c, 0x00, 0x2c, 0x04, 0x00, 0x27, 0x00,
|
||||
0x28, 0x00, 0x17, 0x00, 0x00, 0x05, 0xbe, 0x20, 0x23, 0x8e, 0x64, 0x69, 0x9a, 0x40, 0xaa, 0xae,
|
||||
0xea, 0xe9, 0xbe, 0x4c, 0xda, 0x04, 0x74, 0x6d, 0x07, 0x70, 0x4e, 0x02, 0x0d, 0xe1, 0x38, 0x12,
|
||||
0xc6, 0xef, 0xc7, 0x90, 0x48, 0x06, 0x3a, 0x1d, 0x20, 0xf0, 0x43, 0x22, 0x0e, 0x0f, 0x07, 0x81,
|
||||
0x61, 0x40, 0x24, 0x95, 0x8f, 0x87, 0xe1, 0x41, 0x18, 0x44, 0x44, 0x11, 0xe9, 0xe3, 0x70, 0xcd,
|
||||
0x0d, 0x20, 0x92, 0x27, 0x97, 0x14, 0x31, 0x38, 0xca, 0x30, 0x00, 0xa1, 0x00, 0x31, 0x30, 0xa0,
|
||||
0x8f, 0x92, 0xe1, 0x0b, 0x47, 0x09, 0x07, 0x03, 0x0f, 0x41, 0x7d, 0x65, 0x01, 0x59, 0x5c, 0x48,
|
||||
0x84, 0x57, 0x00, 0x0b, 0x76, 0x54, 0x06, 0x8e, 0x8a, 0x49, 0x83, 0x45, 0x64, 0x92, 0x71, 0x01,
|
||||
0x91, 0x97, 0x9b, 0x85, 0x04, 0x0b, 0x0a, 0x38, 0x9c, 0x39, 0x3e, 0x5d, 0x0b, 0xa1, 0xa2, 0x27,
|
||||
0x4c, 0x04, 0xab, 0x03, 0x9a, 0xa8, 0x25, 0x0e, 0x05, 0x0f, 0x11, 0x4f, 0x06, 0xa7, 0xaf, 0x22,
|
||||
0x4b, 0x05, 0x07, 0x08, 0x4f, 0x10, 0x53, 0xb8, 0xb9, 0x29, 0x99, 0x0c, 0x11, 0x10, 0x6f, 0xc1,
|
||||
0xc2, 0x29, 0x0b, 0x0f, 0x05, 0xb2, 0x7c, 0xc1, 0x2c, 0x01, 0xcc, 0x07, 0x50, 0x89, 0x22, 0xc0,
|
||||
0x9b, 0x0b, 0xdb, 0xdc, 0x02, 0x02, 0x0b, 0xd7, 0x0c, 0xa6, 0x0a, 0x02, 0xaf, 0xdc, 0x9f, 0x0c,
|
||||
0x0a, 0xea, 0x0b, 0xa8, 0x21, 0x00, 0x21, 0xff, 0x0b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4d, 0x61,
|
||||
0x67, 0x69, 0x63, 0x6b, 0x0e, 0x67, 0x61, 0x6d, 0x6d, 0x61, 0x3d, 0x30, 0x2e, 0x34, 0x35, 0x34,
|
||||
0x35, 0x34, 0x35, 0x00, 0x21, 0xf9, 0x04, 0x05, 0x0a, 0x00, 0x02, 0x00, 0x2c, 0x00, 0x00, 0x0e,
|
||||
0x00, 0x1b, 0x00, 0x1e, 0x00, 0x00, 0x04, 0x69, 0x50, 0x88, 0x40, 0x2b, 0x95, 0x38, 0x6b, 0x6d,
|
||||
0xed, 0xfe, 0xa0, 0xc4, 0x54, 0x61, 0x29, 0x7a, 0x66, 0x39, 0x06, 0x4c, 0xaa, 0x52, 0xad, 0xd9,
|
||||
0xb1, 0xd8, 0x1a, 0xb8, 0x73, 0x0b, 0x4c, 0x97, 0x18, 0x97, 0x30, 0xc9, 0x6e, 0xd3, 0x0b, 0x05,
|
||||
0x37, 0x80, 0xe4, 0x50, 0xf6, 0xc3, 0x28, 0x93, 0x38, 0x9a, 0xe6, 0x19, 0x65, 0x31, 0xae, 0x42,
|
||||
0x65, 0xb5, 0xc3, 0xa0, 0xba, 0x04, 0xd7, 0x30, 0x56, 0xfb, 0x0d, 0x3d, 0xbd, 0xe5, 0xec, 0x79,
|
||||
0x99, 0x6e, 0xbb, 0xdf, 0xf0, 0xf6, 0x3a, 0x3e, 0xa7, 0xa3, 0xe1, 0x97, 0x23, 0xbe, 0xd2, 0x2c,
|
||||
0x9f, 0x8b, 0x72, 0x49, 0x2d, 0x58, 0x71, 0x60, 0x37, 0x85, 0x3c, 0x16, 0x7d, 0x65, 0x33, 0x21,
|
||||
0x11, 0x00, 0x21, 0xff, 0x0b, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x4d, 0x61, 0x67, 0x69, 0x63, 0x6b,
|
||||
0x0e, 0x67, 0x61, 0x6d, 0x6d, 0x61, 0x3d, 0x30, 0x2e, 0x34, 0x35, 0x34, 0x35, 0x34, 0x35, 0x00,
|
||||
0x21, 0xf9, 0x04, 0x05, 0x32, 0x00, 0x0a, 0x00, 0x2c, 0x04, 0x00, 0x27, 0x00, 0x28, 0x00, 0x17,
|
||||
0x00, 0x00, 0x05, 0xb2, 0xa0, 0x22, 0x8e, 0x64, 0x69, 0x9a, 0x4c, 0xaa, 0xae, 0xea, 0xe9, 0xbe,
|
||||
0x4a, 0x30, 0x38, 0x8e, 0x61, 0xd0, 0x0e, 0xf1, 0xd8, 0x06, 0xec, 0x93, 0x01, 0x1a, 0x81, 0x80,
|
||||
0x50, 0x0c, 0x87, 0x0a, 0x04, 0xe2, 0xf1, 0xfb, 0x2d, 0x1e, 0x0f, 0xe4, 0x41, 0x19, 0x71, 0x28,
|
||||
0x1e, 0x92, 0xa6, 0xd3, 0x20, 0x41, 0x1c, 0xa2, 0xcc, 0x64, 0x24, 0x1a, 0xd1, 0xfa, 0x08, 0x05,
|
||||
0x88, 0xc1, 0x1b, 0x16, 0x29, 0x21, 0x66, 0xd8, 0x6c, 0xc8, 0xf4, 0x1e, 0x4a, 0x87, 0x6c, 0x1c,
|
||||
0x75, 0x8d, 0x0e, 0x7a, 0x7b, 0x66, 0x0b, 0x6b, 0x08, 0x06, 0x6d, 0x81, 0x3f, 0x0c, 0x0f, 0x77,
|
||||
0x49, 0x07, 0x65, 0x88, 0x5a, 0x45, 0x6e, 0x92, 0x90, 0x2f, 0x8a, 0x7a, 0x95, 0x99, 0x71, 0x00,
|
||||
0x9c, 0x9c, 0x9a, 0x3f, 0x9d, 0x9d, 0x9f, 0x2f, 0xa1, 0xa2, 0xa3, 0x2e, 0x01, 0xa9, 0x01, 0x0c,
|
||||
0xa6, 0xa7, 0x23, 0x03, 0xb0, 0x03, 0x50, 0x0f, 0xb0, 0xae, 0x23, 0x0c, 0x47, 0x4c, 0x07, 0x07,
|
||||
0x05, 0xb6, 0xb7, 0x39, 0x04, 0x6b, 0xbb, 0x35, 0xbe, 0x31, 0x0b, 0x0e, 0x05, 0xbb, 0x06, 0x05,
|
||||
0xc1, 0x07, 0x04, 0x24, 0x03, 0x9f, 0xa9, 0x0c, 0xb2, 0x37, 0x3b, 0x87, 0xab, 0x29, 0xa7, 0xaa,
|
||||
0x02, 0x01, 0x31, 0xaa, 0xa3, 0x21, 0x00, 0x3b
|
||||
};
|
||||
Reference in new issue
Block a user