feat: 全量同步 254 个常用的 Arduino 扩展库文件
This commit is contained in:
38
arduino-libs/arduino-cli/libraries/AH_24CXX/AH_24Cxx.h
Normal file
38
arduino-libs/arduino-cli/libraries/AH_24CXX/AH_24Cxx.h
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
/********************************************************
|
||||
** Download from: **
|
||||
** http://www.arduino-projekte.de **
|
||||
** **
|
||||
** Based on Code from: **
|
||||
** http://arduino.cc/playground/ **
|
||||
** **
|
||||
** Released into the public domain. **
|
||||
********************************************************/
|
||||
|
||||
#ifndef AH_24Cxx_h
|
||||
#define AH_24Cxx_h
|
||||
|
||||
#include <Arduino.h> //Arduino IDE >= V1.0
|
||||
|
||||
|
||||
|
||||
class AH_24Cxx
|
||||
{
|
||||
public:
|
||||
// Constructor
|
||||
AH_24Cxx(int ic_type,int deviceaddress);
|
||||
void write_byte (unsigned int eeaddress, byte data);
|
||||
void write_page (unsigned int eeaddresspage, byte* data, byte length);
|
||||
byte read_byte (unsigned int eeaddress);
|
||||
void read_buffer (unsigned int eeaddress, byte *buffer, int length);
|
||||
|
||||
private:
|
||||
int _mode;
|
||||
int _deviceaddress;
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user