Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyboardLayout.write() delay parameter #116

Merged
merged 3 commits into from
Sep 6, 2023
Merged

KeyboardLayout.write() delay parameter #116

merged 3 commits into from
Sep 6, 2023

Conversation

michalpokusa
Copy link
Contributor

⭐ Added:

  • Example for writing text with KeyboardLayout
  • Docs section for KeyboardLayout

🛠️ Updated/Changed:

  • KeyboardLayout.write() now accepts optional delay parameter that specifies time between key presses (it is important to mention that even when delay=None, I was not able to notice any consistent increase in method execution time, so this does not slow it down)

Fixes #99
Possibly fixes #114

Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One typo. Good otherwise. Thanks!

docs/examples.rst Outdated Show resolved Hide resolved
Copy link
Member

@tannewt tannewt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@tannewt tannewt merged commit 30097f7 into adafruit:main Sep 6, 2023
1 check passed
@michalpokusa michalpokusa deleted the layout-write-delay branch September 6, 2023 19:54
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Sep 8, 2023
Updating https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI to 6.0.1 from 6.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_ESP32SPI#181 from dhalbert/remove-wsgiserver-completely

Updating https://github.com/adafruit/Adafruit_CircuitPython_RGB_Display to 3.12.1 from 3.12.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_RGB_Display#115 from kattni/eyespi-beret

Updating https://github.com/adafruit/Adafruit_CircuitPython_HID to 5.4.0 from 5.3.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_HID#116 from michalpokusa/layout-write-delay

Updating https://github.com/adafruit/Adafruit_CircuitPython_HTTPServer to 4.4.0 from 4.3.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_HTTPServer#67 from michalpokusa/redirect-301-302-token-form-files-cookies

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Updated download stats for the libraries
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.

Keyboard press delay Control the speed of layout.write()?
2 participants