LCDDriver_NXP_Arduino 1.0.0
Temperature sensor device operation sample code for Arduino
Loading...
Searching...
No Matches
M24C02.h
Go to the documentation of this file.
1
8#ifndef ARDUINO_M24C02_H
9#define ARDUINO_M24C02_H
10
11#include <Arduino.h>
12#include <stdint.h>
13
14#include <I2C_device.h>
15
24class M24C02 : public I2C_device
25{
26public:
31 M24C02( uint8_t i2c_address = (0xA0 >> 1) );
32
38 M24C02( TwoWire& wire, uint8_t i2c_address = (0xA0 >> 1) );
39 virtual ~M24C02();
40
45 void begin( void );
46
52 int wait_write_complete( int n );
53
59 int write( int byte_adr, uint8_t data );
60 int write( int byte_adr, uint8_t *dp, int length );
61
67 uint8_t read( int byte_adr );
68 int read( int byte_adr, uint8_t *dp, int length );
69};
70
71#endif // ARDUINO_M24C02_H
int wait_write_complete(int n)
Definition M24C02.cpp:61
uint8_t read(int byte_adr)
Definition M24C02.cpp:72
void begin(void)
Definition M24C02.cpp:15
virtual ~M24C02()
Definition M24C02.cpp:11
int write(int byte_adr, uint8_t data)
Definition M24C02.cpp:19