You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An example of a signed register is the calibration value of the PCF8523
real-time clock, which stores values from -64 to +63 in 7 bits. This could
now be specified as
calibration = i2c_bits.RWBits(7, 0xe, 0, signed=True)
Note that assigning a negative value to an RWBits already worked,
regardless of whether the register was signed, so it was already possible
to *write* -2 to the register; this just allows it to be read back as -2
instead of 126.
0 commit comments