Adafruit Matrix Portal - hardware addresses

EL Wire/Tape/Panels, LEDs, pixels and strips, LCDs and TFTs, etc products from Adafruit

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Azzura
 
Posts: 33
Joined: Mon Nov 29, 2021 9:20 pm

Adafruit Matrix Portal - hardware addresses

Post by Azzura »

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.

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

Re: Adafruit Matrix Portal - hardware addresses

Post by dastels »

It's all in the board module. Try

Code: Select all

import board
dir(board)
Dave

User avatar
Azzura
 
Posts: 33
Joined: Mon Nov 29, 2021 9:20 pm

Re: Adafruit Matrix Portal - hardware addresses

Post by Azzura »

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?

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

Re: Adafruit Matrix Portal - hardware addresses

Post by dastels »

dir(board) should give you a list of hardware resources:

Code: Select all

>>> 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

User avatar
Azzura
 
Posts: 33
Joined: Mon Nov 29, 2021 9:20 pm

Re: Adafruit Matrix Portal - hardware addresses

Post by Azzura »

Thanks Dave,

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

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

Return to “Glowy things (LCD, LED, TFT, EL) purchased at Adafruit”