11 #ifndef __24LC256_HEADER
12 #define __24LC256_HEADER
14 #include "../com/i2c.hpp"
21 void write(uint16_t
const & adr, uint8_t
const & data) {
22 if(
read(adr) != data) {
24 delayMicroseconds(4000);
27 uint8_t
read(uint16_t
const & adr)
const {
37 #endif //__24LC256_HEADER
class com::i2cout_class i2cout
T little_endian(T const &t)
Definition: serializer.hpp:100
void write(uint16_t const &adr, uint8_t const &data)
Definition: 24LC256.hpp:21
Definition: 24LC256.hpp:17
_24LC256_class(uint8_t const &dev_adr=0x50)
Definition: 24LC256.hpp:19
struct ustd::endl_class endl
uint8_t read(uint16_t const &adr) const
Definition: 24LC256.hpp:27
class com::i2cin_class i2cin