Adafruit_CircuitPython_CursorControl

Mouse cursor for interaction with CircuitPython UI elements

MIT License

Downloads
1.2K
Stars
4
Committers
12

Bot releases are hidden (Show)

Adafruit_CircuitPython_CursorControl - 2.2.3 - Moved to pre-commit, added licensing info

Published by evaherrada almost 4 years ago

pre-commit has been added to the GitHub Actions workflow in this repository. pre-commit allows you to run multiple checks, such as black and checking the REUSE licensing compliance, both locally and on GitHub Actions with one command.

You can run pre-commit locally with pre-commit run --all-files

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-cursorcontrol.

Read the docs for info on how to use it.

Adafruit_CircuitPython_CursorControl - 2.2.2 - Fixed discord invite link

Published by evaherrada over 4 years ago

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-cursorcontrol.

Read the docs for info on how to use it.

Adafruit_CircuitPython_CursorControl - 2.2.1 - Added Black check, reran Black with Python 3 target.

Published by evaherrada over 4 years ago

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-cursorcontrol.

Read the docs for info on how to use it.

Adafruit_CircuitPython_CursorControl - 2.2.0 - Upgrade to latest Pylint, implement Black formatting

Published by FoamyGuy over 4 years ago

We have upgraded Pylint checks to use the latest version of Pylint and implemented usage of Black Python formatting. This does not change the functionality of the code - it is designed to bring it up to current standards and make it more readable.

  • Remove pinned Pylint version number from build.yml file
  • Synced .pylintrc file to match Adafruit standard
  • Ran upgraded Pylint and applied any changes or new disables necessary
  • Ran Black formatter and allowed application of changes across entire repo

For more information on using Pylint and Black on your code, check out this guide on working with Pylint and Black

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-cursorcontrol.

Read the docs for info on how to use it.

Adafruit_CircuitPython_CursorControl - 2.1.4 - Changed CI from Travis to GitHub Actions

Published by evaherrada over 4 years ago

This release includes:

  • Migrating this repository from Travis to GitHub Actions. This has no effect on the behavior of the code itself.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

To use in CPython, pip3 install adafruit-circuitpython-cursorcontrol.

Read the docs for info on how to use it.

Adafruit_CircuitPython_CursorControl - Fix PyBadge AttributeError

Published by brentru about 5 years ago

  • Fixes AttributeError: 'CursorManager' object has no attribute '_joystick_x' error with PyBadge.

Read the docs for info on how to use it.

Adafruit_CircuitPython_CursorControl - Fix Cursor Drift

Published by brentru about 5 years ago

This release fixes an issue where the cursor drifts off the screen. The CursorManager now calibrates the joystick during initialization. https://github.com/adafruit/Adafruit_CircuitPython_CursorControl/issues/4

Read the docs for info on how to use it.

Adafruit_CircuitPython_CursorControl - Fix Unsupported Bitmap Type

Published by brentru over 5 years ago

This release fixes an issue where initializing a default cursor would throw an Unsupported Bitmap Type error. https://github.com/adafruit/Adafruit_CircuitPython_CursorControl/pull/9

Read the docs for info on how to use it.

Adafruit_CircuitPython_CursorControl - Add cursor bitmap property

Published by ladyada over 5 years ago

You can now change from the default cursor if you want a custom one!

Read the docs for info on how to use it.

Adafruit_CircuitPython_CursorControl - BREAKING RELEASE: Custom Cursor Support, Hidden Property

Published by brentru over 5 years ago

BREAKING CHANGE: .hide property has been renamed to .hidden.

  • .hide changed to .hidden, thanks @dastels
    • Cursor behavior modified to explicitly define when the cursor is hidden (.hide) or visible (.show) instead of toggling.
  • Added custom cursor support (bitmaps can be defined in code.py and provided to the CursorControl constructor), thanks @dastels

Read the docs for info on how to use it.

Adafruit_CircuitPython_CursorControl - Adding a DebouncedCursorManager

Published by brentru over 5 years ago

  • Added DebouncedCursorManager class: This subclass provide a debounced (non-raw) version on the A button and provides queries for when the button is just pressed, and just released, as well it's current state. "Just" in this context means "since the previous call to update. Utilizes the CircuitPython_Debouncer library. Thanks @dastels
  • Bug fixed in CursorManager, thanks @dastels

Read the docs for info on how to use it.

Adafruit_CircuitPython_CursorControl - CircuitPython_CursorControl - Initial Release!

Published by brentru over 5 years ago

This library adds a Cursor class for generating, displaying, and moving a mouse cursor on a CircuitPython device's display.

Hardware-based control is within a CursorManager class and adds moving the Cursor using either a D-Pad (buttons) or a Joystick (analog potentiometers), and "clicking" the mouse.

Read the docs for info on how to use it.

Package Rankings
Top 13.09% on Pypi.org
Related Projects