Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. void IS_IIC_WriteBuffer(uint8_t Dev_Add)
  2. {
  3. IS_IIC_WriteByte(Addr_GND,0xfe,0xc5);//unlock
  4. IS_IIC_WriteByte(Addr_GND,0xfD,0x00);//write page 0
  5.  
  6. Wire.beginTransmission(Dev_Add/2); // transmit to device IS31FL373x
  7. Wire.write(0x00); // send address of first pixel in page
  8. Wire.write(0xFF); // send value of first pixel of first page
  9. Wire.write(/*data of second pixel on page*/, 179); /*len of first page minus 1*/
  10. Wire.endTransmission();
  11.  
  12.  
  13. IS_IIC_WriteByte(Addr_GND,0xfe,0xc5);//unlock
  14. IS_IIC_WriteByte(Addr_GND,0xfD,0x01);//write page 1
  15.  
  16. Wire.beginTransmission(Dev_Add/2); // transmit to device IS31FL373x
  17. Wire.write(0x00); // send address of first pixel in page
  18. Wire.write(0xFF); // send value of first pixel of first page
  19. Wire.write(/*data of second pixel on page*/, 179); /*len of first page minus 1*/
  20. Wire.endTransmission()'
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement