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.
Adafruit Matrix Portal - hardware addresses
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15662
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Adafruit Matrix Portal - hardware addresses
It's all in the board module. Try
Dave
Code: Select all
import board
dir(board)
- Azzura
- Posts: 33
- Joined: Mon Nov 29, 2021 9:20 pm
Re: Adafruit Matrix Portal - hardware addresses
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?
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?
- dastels
- Posts: 15662
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Adafruit Matrix Portal - hardware addresses
dir(board) should give you a list of hardware resources:
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
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']
Dave
- Azzura
- Posts: 33
- Joined: Mon Nov 29, 2021 9:20 pm
Re: Adafruit Matrix Portal - hardware addresses
Thanks Dave,
From a newbie to an expert, really appreciate your support.
From a newbie to an expert, really appreciate your support.
Please be positive and constructive with your questions and comments.