Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

cfunseth
Copy link

@cfunseth cfunseth commented Sep 4, 2025

I'm using a ATTiny817 Seesaw in an application where I need the main code to execute as fast as possible. When sending PWM commands to the Seesaw, the current analog_write method has a blocking time.sleep(0.001) that would introduce an unwanted delay in the loop. I propose to add an argument that would allow the user to modify this as necessary for their code.

This has been tested with a ESP32-S3-DevKitC-1-N8R8 successfully using a delay of 0 and only calling analog_write at random intervals ranging from 50 to 100 milliseconds.

I feel this is consistent with #90 that similarly allowed for users to decrease the delay on analog_read commands. The default behavior of this change still implements a one millisecond delay, so it should have no effect on existing code that uses this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant