Launch Deck Code

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Egauss
 
Posts: 3
Joined: Thu Nov 11, 2021 5:33 pm

Launch Deck Code

Post by Egauss »

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

User avatar
dastels
 
Posts: 15817
Joined: Tue Oct 20, 2015 3:22 pm

Re: Launch Deck Code

Post by dastels »

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

User avatar
Egauss
 
Posts: 3
Joined: Thu Nov 11, 2021 5:33 pm

Re: Launch Deck Code

Post by Egauss »

Sadly solution dosn helps

User avatar
dastels
 
Posts: 15817
Joined: Tue Oct 20, 2015 3:22 pm

Re: Launch Deck Code

Post by dastels »

Ah. That code adafruit_trellism4.py is for the trellisM4 board, not the ItsyBitsy.

Dave

User avatar
Egauss
 
Posts: 3
Joined: Thu Nov 11, 2021 5:33 pm

Re: Launch Deck Code

Post by Egauss »

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

User avatar
dastels
 
Posts: 15817
Joined: Tue Oct 20, 2015 3:22 pm

Re: Launch Deck Code

Post by dastels »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Itsy Bitsy Boards”