Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void IS_IIC_WriteBuffer(uint8_t Dev_Add)
- {
- IS_IIC_WriteByte(Addr_GND,0xfe,0xc5);//unlock
- IS_IIC_WriteByte(Addr_GND,0xfD,0x00);//write page 0
- Wire.beginTransmission(Dev_Add/2); // transmit to device IS31FL373x
- Wire.write(0x00); // send address of first pixel in page
- Wire.write(0xFF); // send value of first pixel of first page
- Wire.write(/*data of second pixel on page*/, 179); /*len of first page minus 1*/
- Wire.endTransmission();
- IS_IIC_WriteByte(Addr_GND,0xfe,0xc5);//unlock
- IS_IIC_WriteByte(Addr_GND,0xfD,0x01);//write page 1
- Wire.beginTransmission(Dev_Add/2); // transmit to device IS31FL373x
- Wire.write(0x00); // send address of first pixel in page
- Wire.write(0xFF); // send value of first pixel of first page
- Wire.write(/*data of second pixel on page*/, 179); /*len of first page minus 1*/
- Wire.endTransmission()'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement