source: rtos_arduino/trunk/arduino_lib/libraries/Robot_Control/src/EEPROM_I2C.h@ 136

Last change on this file since 136 was 136, checked in by ertl-honda, 8 years ago

ライブラリとOS及びベーシックなサンプルの追加.

File size: 700 bytes
Line 
1#ifndef EEPROM_I2C_h
2#define EEPROM_I2C_h
3
4#if ARDUINO >= 100
5#include "Arduino.h"
6#else
7#include "WProgram.h"
8#endif
9
10#define EE24LC512MAXBYTES 64000
11#define DEVICEADDRESS 0x50
12
13class EEPROM_I2C{
14 public:
15 void begin();
16
17 void writeByte(unsigned int eeaddresspage, byte data);
18 byte readByte(unsigned int eeaddresspage);
19
20 void writePage(unsigned int eeaddresspage, byte* data, byte length );
21 void readBuffer(unsigned int eeaddress, byte *buffer, int length );
22
23 //uint16_t readPixel(uint16_t theMemoryAddress);
24 //void readImage(uint16_t theMemoryAddress, int width, int height);
25
26 protected:
27 void _beginTransmission(unsigned int eeaddress);
28 void _endTransmission();
29};
30
31#endif
Note: See TracBrowser for help on using the repository browser.