0

TypeError: unsupported bitmap type
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

TypeError: unsupported bitmap type

by dbulmer on Sat Jul 13, 2019 10:08 pm

I'm trying out Cursor Control and Using the sample code I receive an error. Any idea what is wrong here.

Code: Select all | TOGGLE FULL SIZE
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


Code: Select all | TOGGLE FULL SIZE
import time
import board
import displayio
from adafruit_cursorcontrol.cursorcontrol import Cursor
from adafruit_cursorcontrol.cursorcontrol_cursormanager import CursorManager

# Create the display
display = board.DISPLAY

# Create the display context

splash = displayio.Group(max_size=5)

# initialize the mouse cursor object
mouse_cursor = Cursor(display, display_group=splash)

# initialize the cursormanager
cursor = CursorManager(mouse_cursor)

# show displayio group
display.show(splash)

while True:
    cursor.update()
    if cursor.is_clicked:
        if mouse_cursor.hidden:
            mouse_cursor.show()
        else:
            mouse_cursor.hide()
    time.sleep(0.01)


Versions are.
Adafruit CircuitPython 4.0.2 on 2019-06-27; Adafruit PyGamer with samd51j19
adafruit-circuitpython-bundle-4.x-mpy-20190713

dbulmer
 
Posts: 4
Joined: Fri Mar 29, 2019 4:04 pm

Re: TypeError: unsupported bitmap type

by dbulmer on Sun Jul 14, 2019 11:54 am

I have gone back to the July 4th version of adafruit-circuitpython-bundle-4.x-mpy and every thing works. Seems to be an error with the current version of the cursorcontrol module.

dbulmer
 
Posts: 4
Joined: Fri Mar 29, 2019 4:04 pm

Re: TypeError: unsupported bitmap type

by adafruit_support_carter on Mon Jul 15, 2019 1:58 pm


adafruit_support_carter
 
Posts: 13003
Joined: Tue Nov 29, 2016 2:45 pm

Please be positive and constructive with your questions and comments.