Boboter
Loading...
Searching...
No Matches
leds_task.cpp File Reference
#include "tasks/tasks.h"
#include <esp_random.h>
#include "include/robot.h"
#include "helpers/delay.h"
#include "helpers/predef_colors.h"
#include "lib/logger/logger.h"

Namespaces

namespace  Task
 A namespace containing all the custom FreeRTOS tasks the robot uses.

Macros

#define polling_delay(ms)
 Macro that wraps polling_delay_callback(ms) and checks if it needs to skip to next iteration of the loop.

Functions

void Task::leds_task (void *params)
 Manages the NeoPixel RGB LEDs and executes lighting routines.

Detailed Description

Authors
MarioS271

Macro Definition Documentation

◆ polling_delay

#define polling_delay ( ms)
Value:
if (polling_delay_callback(ms, changed)) { \
continue; \
} else { \
changed = false; \
}

Macro that wraps polling_delay_callback(ms) and checks if it needs to skip to next iteration of the loop.