MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / addToRGBQueue

Function addToRGBQueue

ESP32_AP-Flasher/src/leds.cpp:49–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47#ifdef HAS_RGB_LED
48
49void addToRGBQueue(struct ledInstructionRGB* rgb, bool requeue) {
50 rgb->reQueue = requeue;
51 if (!rgbLedQueue) {
52 delete rgb;
53 return;
54 }
55 BaseType_t queuestatus = xQueueSend(rgbLedQueue, &rgb, 0);
56 if (queuestatus == pdFALSE) {
57 delete rgb;
58 }
59}
60
61void addFadeColor(CRGB cname) {
62 struct ledInstructionRGB* rgb = new struct ledInstructionRGB;

Callers 4

addFadeColorFunction · 0.70
shortBlinkFunction · 0.70
showColorPatternFunction · 0.70
ledTaskFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected