You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <iostream>
|
|
#include "ii2c.hpp"
|
|
#include <iostream>
|
|
|
|
int main(void)
|
|
{
|
|
I2C i2c;
|
|
|
|
std::cout << static_cast<int>(i2c.readByte(100,50)) << std::endl;
|
|
|
|
i2c.writeByte(20,30,40);
|
|
|
|
std::cout<< static_cast<int>(i2c.readWord(23,24)) << std::endl;
|
|
|
|
i2c.writeWord(21,31,1024);
|
|
|
|
return 0;
|
|
}
|