![]() I’m not sure what I should change in my current unsigned int wire request code that is working fine for other registers that are not returning data in HEX format. The next register returns the same Hex data type but instead of 2 Bytes it returns 4 + 1 Bytes. The 0 or 1 status of those bits will tell me whats up based on this graph: Now I’m thinking that I need to convert that HEX value to string of 16 individual bits. Now I want to read from this register that returns a 2 Byte Hex value held in a unsigned Int data format. Those work fine for pulling data from registers that only hold and return 1 or 2 Bytes of signed & unsigned int data. ![]() Wire.requestFrom(BQ20Z45_Address,2,true) Wire.requestFrom(BQ20Z45_Address,1,true)
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |