29#include "../devices/lcd_hd44780.h"
30#include "../devices/mi2c_24CXXX.h"
31#include "../devices/rtc_ds1307.h"
32#include "../devices/swbounce.h"
33#include "bsim_picsim.h"
35#define BOARD_McLab2_Name "McLab2"
39 unsigned char p_BT[4];
64 unsigned char sda, sck;
76 char mi2c_tmp_name[200];
86 std::string
GetName(
void)
override {
return BOARD_McLab2_Name; };
87 std::string
GetAboutInfo(
void)
override {
return "L.C. Gamboa \n <lcgamboa@yahoo.com>"; };
90 void Draw(
void)
override;
93 return "PIC16F1789,PIC16F1939,PIC16F777,PIC16F877A,PIC16F887,PIC18F452,PIC18F4520,PIC18F4550,PIC18F45K50,"
94 "PIC18F4580,PIC18F4620,PIC18F47K40,";
96 int MInit(
const char* processor,
const char* fname,
float freq)
override;
97 void Reset(
void)
override;
99 void EvMouseButtonPress(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
100 void EvMouseButtonRelease(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
101 void EvMouseMove(
unsigned int button,
unsigned int x,
unsigned int y,
unsigned int state)
override;
102 void EvKeyPress(
unsigned int key,
unsigned int mask)
override;
103 void EvKeyRelease(
unsigned int key,
unsigned int mask)
override;
108 void SetScale(
double scale)
override;
109 unsigned short GetInputId(
char* name)
override;
Definition bsim_picsim.h:34
Definition board_McLab2.h:37
void Run_CPU(void) override
Paralle thread called ever 100ms to run cpu code.
Definition board_McLab2.cc:609
std::string GetName(void) override
Get board name registered in PICSimLab.
Definition board_McLab2.h:86
void RegisterRemoteControl(void) override
Register remote control variables.
Definition board_McLab2.cc:895
std::string GetAboutInfo(void) override
Return the about information of part.
Definition board_McLab2.h:87
void Reset(void) override
Reset board status.
Definition board_McLab2.cc:858
void EvOnShow(void) override
Event on the board.
Definition board_McLab2.cc:1176
unsigned short GetInputId(char *name) override
return the input ids numbers of names used in input map
Definition board_McLab2.cc:1181
void ReadPreferences(char *name, char *value) override
Called whe configuration file load preferences.
Definition board_McLab2.cc:1381
std::string GetSupportedDevices(void) override
Return a list of supported microcontrollers.
Definition board_McLab2.h:92
void EvMouseButtonRelease(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_McLab2.cc:1091
void RefreshStatus(void) override
Called ever 1s to refresh status.
Definition board_McLab2.cc:1352
void SetScale(double scale) override
Set board draw scale.
Definition board_McLab2.cc:208
void EvMouseMove(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_McLab2.cc:1072
void Draw(void) override
Called ever 100ms to draw board.
Definition board_McLab2.cc:242
int MDumpMemory(const char *mfname) override
board microcontroller save non volatile memory to hex file
Definition board_McLab2.cc:224
int MInit(const char *processor, const char *fname, float freq) override
board microcontroller init
Definition board_McLab2.cc:191
unsigned short GetOutputId(char *name) override
return the output ids numbers of names used in output map
Definition board_McLab2.cc:1222
void EvKeyPress(unsigned int key, unsigned int mask) override
Event on the board.
Definition board_McLab2.cc:1135
void EvMouseButtonPress(unsigned int button, unsigned int x, unsigned int y, unsigned int state) override
Event on the board.
Definition board_McLab2.cc:946
void WritePreferences(void) override
Called to save board preferences in configuration file.
Definition board_McLab2.cc:1368
void EvKeyRelease(unsigned int key, unsigned int mask) override
Event on the board.
Definition board_McLab2.cc:1154
Definition lcd_hd44780.h:67
Definition mi2c_24CXXX.h:28