Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days. On MLK Day no orders will be shipped.
0

Adafruit Matrix Portal - hardware addresses
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Adafruit Matrix Portal - hardware addresses

by Azzura on Mon Nov 29, 2021 9:28 pm

Hi, seeking a list for the matrix portal PCB hardware. In circuit python what are the addresses for the pushbuttons and other hardware I/O pins on the matrix portal PCB.
As an example I am using the following for the 64X32 LED display

rgb_pins=[board.MTX_R1, board.MTX_G1, board.MTX_B1, board.MTX_R2, board.MTX_G2, board.MTX_B2],
addr_pins=[board.MTX_ADDRA, board.MTX_ADDRB, board.MTX_ADDRC, board.MTX_ADDRD],
clock_pin=board.MTX_CLK, latch_pin=board.MTX_LAT, output_enable_pin=board.MTX_OE)

However if you advise me where the full listing of all the hardware on this PCB is located I will seek it out. Thank you in advance.

Azzura
 
Posts: 10
Joined: Mon Nov 29, 2021 9:20 pm

Re: Adafruit Matrix Portal - hardware addresses

by dastels on Mon Nov 29, 2021 10:45 pm

It's all in the board module. Try
Code: Select all | TOGGLE FULL SIZE
import board
dir(board)

Dave

dastels
 
Posts: 8388
Joined: Tue Oct 20, 2015 3:22 pm

Re: Adafruit Matrix Portal - hardware addresses

by Azzura on Tue Nov 30, 2021 11:46 am

Hi Dave,

Thanks for the quick reply ... still struggling to figure this out. I'm still learning. So I tried this:
import board
dir(board)

The circuitpy drive library contains "adafruit_matrixportal" and others, I was expecting a list, unfortunately nothing came back that suggests a list of addresses.
Presuming I am doing something not correct, any advice?

Azzura
 
Posts: 10
Joined: Mon Nov 29, 2021 9:20 pm

Re: Adafruit Matrix Portal - hardware addresses

by dastels on Tue Nov 30, 2021 1:15 pm

dir(board) should give you a list of hardware resources:
Code: Select all | TOGGLE FULL SIZE
>>> import board
>>> dir(board)
['__class__', 'A0', 'A1', 'A2', 'A3', 'A4', 'ACCELEROMETER_INTERRUPT', 'BUTTON_DOWN', 'BUTTON_UP', 'ESP_BUSY', 'ESP_CS', 'ESP_GPIO0',
 'ESP_RESET', 'ESP_RTS', 'ESP_RX', 'ESP_TX', 'I2C', 'L', 'MISO', 'MOSI', 'MTX_ADDRA', 'MTX_ADDRB', 'MTX_ADDRC', 'MTX_ADDRD', 'MTX_ADD
RE', 'MTX_B1', 'MTX_B2', 'MTX_CLK', 'MTX_G1', 'MTX_G2', 'MTX_LAT', 'MTX_OE', 'MTX_R1', 'MTX_R2', 'NEOPIXEL', 'RX', 'SCK', 'SCL', 'SDA
', 'SPI', 'TX', 'UART']

After importing board you can then use those names. E.g. board.BUTTON_DOWN to set up a DigitalInOut to read the down button.

Dave

dastels
 
Posts: 8388
Joined: Tue Oct 20, 2015 3:22 pm

Re: Adafruit Matrix Portal - hardware addresses

by Azzura on Sat Dec 04, 2021 7:48 pm

Thanks Dave,

From a newbie to an expert, really appreciate your support.

Azzura
 
Posts: 10
Joined: Mon Nov 29, 2021 9:20 pm

Please be positive and constructive with your questions and comments.