Adafruit_Seesaw
Adafruit_Seesaw copied to clipboard
Added polling flag to MultiTrellis::read
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 :-)