26#ifndef BOARD_Franzininho_DIY_H
27#define BOARD_Franzininho_DIY_H
29#include "bsim_simavr.h"
31#define BOARD_Franzininho_DIY_Name "Franzininho DIY"
40 std::string
GetName(
void)
override {
return BOARD_Franzininho_DIY_Name; };
42 return "Fábio Souza e Felipe Alvares\n <contato@franzininho.com.br>\n https://franzininho.com.br/";
49 void Draw(
void)
override;
54 void Reset(
void)
override;
56 void EvMouseButtonPress(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
58 void EvMouseButtonRelease(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
60 void EvKeyPress(
unsigned int key,
unsigned int mask)
override;
62 void EvKeyRelease(
unsigned int key,
unsigned int mask)
override;
70 unsigned short GetInputId(
char* name)
override;
Definition bsim_simavr.h:56
Definition board_Franzininho_DIY.h:34
void Reset(void) override
Reset board status.
Definition board_Franzininho_DIY.cc:122
void Draw(void) override
Called ever 100ms to draw board.
Definition board_Franzininho_DIY.cc:271
void ReadPreferences(char *name, char *value) override
Called whe configuration file load preferences.
Definition board_Franzininho_DIY.cc:180
std::string GetName(void) override
Get board name registered in PICSimLab.
Definition board_Franzininho_DIY.h:40
void RegisterRemoteControl(void) override
Register remote control variables.
Definition board_Franzininho_DIY.cc:133
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition board_Franzininho_DIY.cc:59
void EvKeyRelease(unsigned int key, unsigned int mask) override
Event on the board.
Definition board_Franzininho_DIY.cc:197
std::string GetSupportedDevices(void) override
Return a list of supported microcontrollers.
Definition board_Franzininho_DIY.h:52
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition board_Franzininho_DIY.cc:73
std::string GetAboutInfo(void) override
Return the about information of part.
Definition board_Franzininho_DIY.h:41
void EvKeyPress(unsigned int key, unsigned int mask) override
Event on the board.
Definition board_Franzininho_DIY.cc:193
void RefreshStatus(void) override
Called ever 1s to refresh status.
Definition board_Franzininho_DIY.cc:139
void WritePreferences(void) override
Called to save board preferences in configuration file.
Definition board_Franzininho_DIY.cc:172
void EvMouseButtonRelease(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_Franzininho_DIY.cc:243
void EvMouseButtonPress(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_Franzininho_DIY.cc:201
void Run_CPU(void) override
Paralle thread called ever 100ms to run cpu code.
Definition board_Franzininho_DIY.cc:367