26#ifndef BOARD_Arduino_Uno_H
27#define BOARD_Arduino_Uno_H
29#include "bsim_simavr.h"
31#define BOARD_Arduino_Uno_Name "Arduino Uno"
43 std::string
GetName(
void)
override {
return BOARD_Arduino_Uno_Name; };
44 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
50 void Draw(
void)
override;
55 void Reset(
void)
override;
57 void EvMouseButtonPress(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
59 void EvMouseButtonRelease(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
61 void EvKeyPress(
unsigned int key,
unsigned int mask)
override;
63 void EvKeyRelease(
unsigned int key,
unsigned int mask)
override;
71 unsigned short GetInputId(
char* name)
override;
Definition bsim_simavr.h:56
Definition board_Arduino_Uno.h:34
void RegisterRemoteControl(void) override
Register remote control variables.
Definition board_Arduino_Uno.cc:151
void EvMouseButtonPress(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_Arduino_Uno.cc:235
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition board_Arduino_Uno.cc:67
void EvKeyPress(unsigned int key, unsigned int mask) override
Event on the board.
Definition board_Arduino_Uno.cc:227
void Draw(void) override
Called ever 100ms to draw board.
Definition board_Arduino_Uno.cc:303
void Run_CPU(void) override
Paralle thread called ever 100ms to run cpu code.
Definition board_Arduino_Uno.cc:389
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition board_Arduino_Uno.cc:53
void ReadPreferences(char *name, char *value) override
Called whe configuration file load preferences.
Definition board_Arduino_Uno.cc:214
std::string GetAboutInfo(void) override
Return the about information of part.
Definition board_Arduino_Uno.h:44
std::string GetSupportedDevices(void) override
Return a list of supported microcontrollers.
Definition board_Arduino_Uno.h:53
void RefreshStatus(void) override
Called ever 1s to refresh status.
Definition board_Arduino_Uno.cc:157
void Reset(void) override
Reset board status.
Definition board_Arduino_Uno.cc:122
std::string GetName(void) override
Get board name registered in PICSimLab.
Definition board_Arduino_Uno.h:43
void EvKeyRelease(unsigned int key, unsigned int mask) override
Event on the board.
Definition board_Arduino_Uno.cc:231
void EvMouseButtonRelease(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_Arduino_Uno.cc:276
void WritePreferences(void) override
Called to save board preferences in configuration file.
Definition board_Arduino_Uno.cc:206