26#ifndef PART_LED_WS2812B_H
27#define PART_LED_WS2812B_H
29#include "../devices/led_ws2812b.h"
30#include "../lib/part.h"
32#define PART_LED_WS2812B_Name "RGB LED WS2812B"
36 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
40 void DrawOutput(
const unsigned int index)
override;
49 unsigned short GetInputId(
char* name)
override;
53 void ChangeType(
const unsigned int rows,
const unsigned int cols,
const unsigned char diffuser);
55 unsigned char input_pins[1];
56 unsigned char output_pins[1];
Board class.
Definition board.h:111
Definition output_LED_WS2812B.h:34
void RegisterRemoteControl(void) override
Register remote control variables.
Definition output_LED_WS2812B.cc:256
void LoadPartImage(void) override
Load Part Image.
Definition output_LED_WS2812B.cc:75
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition output_LED_WS2812B.cc:190
void PreProcess(void) override
Called every start of CPU process.
Definition output_LED_WS2812B.cc:302
void ReadPropertiesWindow(void) override
Called when properties window close.
Definition output_LED_WS2812B.cc:281
std::string GetAboutInfo(void) override
Return the about information of part.
Definition output_LED_WS2812B.h:36
void ReadPreferences(std::string value) override
Called whe configuration file load preferences.
Definition output_LED_WS2812B.cc:221
void Process(void) override
Called every CPU step.
Definition output_LED_WS2812B.cc:306
std::string WritePreferences(void) override
Called to save part preferences in configuration file.
Definition output_LED_WS2812B.cc:213
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition output_LED_WS2812B.cc:195
void DrawOutput(const unsigned int index) override
Called to draw every output.
Definition output_LED_WS2812B.cc:131
void PostProcess(void) override
Called every end of CPU process.
Definition output_LED_WS2812B.cc:319
void ConfigurePropertiesWindow(void) override
Called to configure the properties window.
Definition output_LED_WS2812B.cc:260
PART class.
Definition part.h:49
Definition led_ws2812b.h:53