lite variant removed as Arduino framework is preferred for size requirements on ATSAMD21 (using CirquePinnacle lib)
add new classes AbsoluteReport and RelativeReport
RelativeReport includes a buffer read-only property that returns a bytes object (convenient for mouse HID reports).
change read() to expect a AbsoluteReport or RelativeReport object (depending on data_mode); read() no longer returns anything. New kwargread_buttons that allows to skip reading button data.
updates docs and CI workflows (including pre-commit config)
updated examples now show usage for each supported data_mode (& as a USB mouse example). Each example now demonstrates how to use SPI or I2C.
prefixed all module-level constants with PINNACLE_ to keep API migration (between C++ port's CPython binding and this lib) smooth.
added more [private] constants for accessing registers (as opposed to using magic numbers).
re-prioritize parameters to relative_mode_config() to easy the usability of the parameters' utility.
introduce proper support for intellimouse feature of relative mode.
get_measure_adc() does not check available() as that should be done prior to the get_measure_adc() call anyway.
calibrate() now has a default value (True) for the run param.
calibrate() returns
AbsoluteReport
andRelativeReport
RelativeReport
includes abuffer
read-only property that returns abytes
object (convenient for mouse HID reports).read()
to expect aAbsoluteReport
orRelativeReport
object (depending ondata_mode
);read()
no longer returns anything. New kwargread_buttons
that allows to skip reading button data.data_mode
(& as a USB mouse example). Each example now demonstrates how to use SPI or I2C.PINNACLE_
to keep API migration (between C++ port's CPython binding and this lib) smooth.relative_mode_config()
to easy the usability of the parameters' utility.get_measure_adc()
does not checkavailable()
as that should be done prior to theget_measure_adc()
call anyway.calibrate()
now has a default value (True
) for therun
param.calibrate()
returnsrun
is asserted)