feat: 全量同步 254 个常用的 Arduino 扩展库文件

This commit is contained in:
yczpf2019
2026-01-24 16:05:38 +08:00
parent c665ba662b
commit 397b9a23a3
6878 changed files with 2732224 additions and 1 deletions

View 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