[SOLVED] NeoTrellis don't work with TrellisM4 (tilled)
Re: NeoTrellis don't work with TrellisM4 (tilled)
Re: NeoTrellis don't work with TrellisM4 (tilled)
Re: NeoTrellis don't work with TrellisM4 (tilled)
Re: NeoTrellis don't work with TrellisM4 (tilled)
Re: NeoTrellis don't work with TrellisM4 (tilled)
Re: NeoTrellis don't work with TrellisM4 (tilled)
Re: NeoTrellis don't work with TrellisM4 (tilled)
Re: [SOLVED] NeoTrellis don't work with TrellisM4 (tilled)
Re: [SOLVED] NeoTrellis don't work with TrellisM4 (tilled)
Re: [SOLVED] NeoTrellis don't work with TrellisM4 (tilled)
okyeron wrote:Great post! Glad I found this before I started soldering my version together.
Question - how does the addressing work when using the M4 as the "first 2 trellis boards"? (I've not yet dug into the code)
from board import SCL, SDA
import busio
from adafruit_neotrellis.neotrellism4 import NeoTrellisM4
from adafruit_neotrellis.neotrellis import NeoTrellis
from adafruit_neotrellis.multitrellis import MultiTrellis
#create the i2c object for the trellis
I2C = busio.I2C(SCL, SDA)
trellim4_left = NeoTrellisM4()
trellim4_right = NeoTrellisM4(left_part=trellim4_left)
trelli = [
[trellim4_left, trellim4_right],
[NeoTrellis(I2C, False, addr=0x2F), NeoTrellis(I2C, False, addr=0x2E)]
]
trellis = MultiTrellis(trelli)Re: [SOLVED] NeoTrellis don't work with TrellisM4 (tilled)
Re: [SOLVED] NeoTrellis don't work with TrellisM4 (tilled)
Re: [SOLVED] NeoTrellis don't work with TrellisM4 (tilled)
//create a matrix of trellis panels
Adafruit_NeoTrellis t_array[Y_DIM/4][X_DIM/4] = {
{ Adafruit_NeoTrellisM4(), Adafruit_NeoTrellisM4() },
{ Adafruit_NeoTrellis(0x2E), Adafruit_NeoTrellis(0x2F) }
};
//pass this matrix to the multitrellis object
Adafruit_MultiTrellis trellis((Adafruit_NeoTrellis *)t_array, Y_DIM/4, X_DIM/4);
keypad_test2:14:159: error: conversion from 'Adafruit_NeoTrellisM4' to non-scalar type 'Adafruit_NeoTrellis' requestedkeypad_test2:26:11: error: 'class Adafruit_MultiTrellis' has no member named 'setBrightness'
trellis.setBrightness(80);
Re: [SOLVED] NeoTrellis don't work with TrellisM4 (tilled)