Hello, i am trying to run launch deck hid keypad code "https://learn.adafruit.com/launch-deck- ... cuitpython" on itsybitsyM4 and have error:
Traceback (most recent call last):
File "code.py", line 87, in <module>
File "adafruit_trellism4.py", line 236, in __init__
AttributeError: 'module' object has no attribute 'NEOPIXEL'
does anyone know work around? Thanks
Launch Deck Code
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15830
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Launch Deck Code
Make sure you have the latest CircuitPython for the board. Then grab the latest library bundle. Delete everything in CIRCUITPY/lib, and empty trash as appropriate for your OS. Then copy files/directories from the bundle to CIRCUITPY/lib as required.
That will, in my experience, typically take care of this sort of problem.
Dave
That will, in my experience, typically take care of this sort of problem.
Dave
- dastels
- Posts: 15830
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Launch Deck Code
Ah. That code adafruit_trellism4.py is for the trellisM4 board, not the ItsyBitsy.
Dave
Dave
- Egauss
- Posts: 3
- Joined: Thu Nov 11, 2021 5:33 pm
Re: Launch Deck Code
Thanks for your reply.
i did small research and looked schematic, seems neotrellis panels on i2c bus and trellis M4 works from ic pins.
Does anybody know example of hid lounch pad with i2c bus to make as normal PC keyboard. Thanks
i did small research and looked schematic, seems neotrellis panels on i2c bus and trellis M4 works from ic pins.
Does anybody know example of hid lounch pad with i2c bus to make as normal PC keyboard. Thanks
- dastels
- Posts: 15830
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Launch Deck Code
Yes, that's the NeoTrellis 4x4 module that has an onboard SAMD9 running as a seesaw device and driven via I2C (and works with any MCU board). The NeotrellisM4 is the 4x8 grid with an onboard SAMD51 that runs the array directly.
The NeoTrellis guide is here: https://learn.adafruit.com/adafruit-neotrellis. The biggest difference from a software point of view is using a different module to interact with the button/light aray: adafruit_neotrellis instead of adafruit_trellism4. See https://learn.adafruit.com/adafruit-neo ... ython-code for more information.
Dave
The NeoTrellis guide is here: https://learn.adafruit.com/adafruit-neotrellis. The biggest difference from a software point of view is using a different module to interact with the button/light aray: adafruit_neotrellis instead of adafruit_trellism4. See https://learn.adafruit.com/adafruit-neo ... ython-code for more information.
Dave
Please be positive and constructive with your questions and comments.