📄 unit1.h
字号:
//---------------------------------------------------------------------------
#ifndef Unit1H
#define Unit1H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include "I2C_Sim.h"
#include "PinSetForm.h"
#include <ExtCtrls.hpp>
#include <Menus.hpp>
#include <ComCtrls.hpp>
//---------------------------------------------------------------------------
class TSimI2CForm : public TForm
{
__published: // IDE-managed Components
TEdit *Address;
TLabel *TxtAddress;
TLabel *TxtData;
TEdit *Data;
TButton *Executive;
TRadioButton *RadioRead;
TRadioButton *RadioWrite;
TShape *LED;
TLabel *Label3;
TButton *Process;
TLabel *Label1;
TEdit *SCLPIN;
TLabel *Label2;
TEdit *SDAPIN;
TButton *I2CBusSet;
void __fastcall ExecutiveClick(TObject *Sender);
void __fastcall ProcessClick(TObject *Sender);
void __fastcall I2CBusSetClick(TObject *Sender);
private:
I2C_Sim my_bus; // User declarations
//TPinSet my_Pin; // User declarations
public: // User declarations
__fastcall TSimI2CForm(TComponent* Owner);
public:
BYTE SCL;
BYTE SDI;
BYTE SDO;
BYTE DVDD;
};
//---------------------------------------------------------------------------
extern PACKAGE TSimI2CForm *SimI2CForm;
//---------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -