29#include "../lib/part.h"
31#define PART_LEDS_Name "LEDs"
35 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
36 cpart_leds(
const unsigned x,
const unsigned y,
const char* name,
const char* type,
board* pboard_,
const int id_);
38 void DrawOutput(
const unsigned int index)
override;
45 unsigned short GetInputId(
char* name)
override;
47 void SpinChange(
const char* controlname,
int value)
override;
50 void ChangeSize(
const unsigned int sz);
53 unsigned char input_pins[8];
54 unsigned char colors[8];
Board class.
Definition board.h:111
Definition output_LEDs.h:33
void ReadPreferences(std::string value) override
Called whe configuration file load preferences.
Definition output_LEDs.cc:222
void DrawOutput(const unsigned int index) override
Called to draw every output.
Definition output_LEDs.cc:93
void ConfigurePropertiesWindow(void) override
Called to configure the properties window.
Definition output_LEDs.cc:244
std::string WritePreferences(void) override
Called to save part preferences in configuration file.
Definition output_LEDs.cc:211
std::string GetAboutInfo(void) override
Return the about information of part.
Definition output_LEDs.h:35
void ReadPropertiesWindow(void) override
Called when properties window close.
Definition output_LEDs.cc:292
void LoadPartImage(void) override
Load Part Image.
Definition output_LEDs.cc:352
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition output_LEDs.cc:172
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition output_LEDs.cc:167
void RegisterRemoteControl(void) override
Register remote control variables.
Definition output_LEDs.cc:232
void PostProcess(void) override
Called every end of CPU process.
Definition output_LEDs.cc:156
void SpinChange(const char *controlname, int value) override
Used by properties window spin.
Definition output_LEDs.cc:327
PART class.
Definition part.h:49