Adafruit_Seesaw icon indicating copy to clipboard operation
Adafruit_Seesaw copied to clipboard

Added polling flag to MultiTrellis::read

Open ukmaker opened this issue 2 years ago • 3 comments

Theread()method in MultiTrellis does not currently support the polling flag. This results in unnecessary bus activity which injects noise in to the PSU for audio applications.

This PR adds the flag, default to true if not supplied so as not to change the API for existing apps.

This PR also duplicates the logic if (polling) count = count + 2; which exists in the NeoTrellis::read(0 method. However I have no idea what this actually does (there is no comment explaining it). But it works for me :-)

ukmaker avatar May 21 '22 15:05 ukmaker