Having trouble using I2C to write and read

前端 未结 0 1897
无人及你
无人及你 2020-11-28 03:51
Serial pc(USBTX,USBRX);
I2C i2c(p9,p10);

void writing(int val) {
      i2c.start();
    i2c.write(0b10100000); //address 1010xxxx, r/w=0 write
    
  i2c.write(0);          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题