Skip to content

TypeError: unsupported bitmap type #8

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

Closed
codepope opened this issue Jul 13, 2019 · 2 comments
Closed

TypeError: unsupported bitmap type #8

codepope opened this issue Jul 13, 2019 · 2 comments
Assignees

Comments

@codepope
Copy link

Just trying out the examples from the Adafruit article and almost immediatly got an error:

code.py output:
Traceback (most recent call last):
  File "code.py", line 14, in <module>
  File "adafruit_cursorcontrol/cursorcontrol.py", line 81, in init
  File "adafruit_cursorcontrol/cursorcontrol.py", line 240, in generate_cursor
TypeError: unsupported bitmap type

Not attempting to set a cursor bitmap. So was confused.

Sommersoft on Discord suggested a fix, swapping line 81 for

self.generate_cursor(self.cursor_bitmap)

This does resolve the issue for me.

@brentru
Copy link
Member

brentru commented Jul 16, 2019

@codepope Thanks for pointing this out, it was modified when we allowed user-defined cursor bitmaps. I submitted a pull request with a patch fixing this.

@brentru
Copy link
Member

brentru commented Jul 16, 2019

Merged into master and released. Closing...

@brentru brentru closed this as completed Jul 16, 2019
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

No branches or pull requests

2 participants