QT PY rp2040

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
bsmith221
 
Posts: 21
Joined: Thu Aug 11, 2022 9:30 pm

QT PY rp2040

Post by bsmith221 »

Any way to get a digital pin out of the QT PY rp2040?

Trying to connect an w5500 ethernet board.

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: QT PY rp2040

Post by Franklin97355 »

What else do you want to connect?

User avatar
bsmith221
 
Posts: 21
Joined: Thu Aug 11, 2022 9:30 pm

Re: QT PY rp2040

Post by bsmith221 »

I am looking to use just a simple temperature/humidity sensor (Adafruit AHT20) or possibly a photocell (Adafruit ALS-PT19). I believe either one only needs one analog pin, power and ground.

User avatar
Franklin97355
 
Posts: 23939
Joined: Mon Apr 21, 2008 2:33 pm

Re: QT PY rp2040

Post by Franklin97355 »

The QT PY has a i2c port and the AHT20 is i2c so it just plugs into the socket. no additional pin is needed.

User avatar
bsmith221
 
Posts: 21
Joined: Thu Aug 11, 2022 9:30 pm

Re: QT PY rp2040

Post by bsmith221 »

This question is more about the network board. I need the chip select reset for the board. the itsybitsy rp2040 uses the D10 pin digitalio.DigitalInOut(board.D10), but there is not a d10 on the qt py. Any pin I can run with digitalInout on the qt?

User avatar
bsmith221
 
Posts: 21
Joined: Thu Aug 11, 2022 9:30 pm

Re: QT PY rp2040

Post by bsmith221 »

Ok ... after better reading of the pinout information ... it was right there all along!
Digital Pins
These are the digital I/O pins. They all have multiple capabilities.

SDA/D4 - I2C0 SDA, and digital I/O pin 4. It is also UART1 TX and PWM4 A.
SCL/D5 - I2C0 SCL, and digital I/O pin 5. It is also UART1 RX and PWM4 B.
SCK/D8 - The main SPI0 SCK and digital I/O pin 8. It is also I2C1 SDA and PWM3 A.
MI/D9 - The main SPI0 MISO and digital I/O pin 9. It is also UART1 TX, I2C0 SDA and PWM2 A.
MO/D10 - The main SPI0 MOSI and digital I/O pin 10. It is also I2C1 SCL and PWM1 B.
By using the SDA as the digital cs, it works perfectly!

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

Return to “Adafruit CircuitPython”