Compatibility and coding with the RA8875 and a RPi pico plus

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
sam_m_bar
 
Posts: 1
Joined: Wed May 31, 2023 12:57 pm

Compatibility and coding with the RA8875 and a RPi pico plus

Post by sam_m_bar »

This is my current code (attempt 3)

Code: Select all

from machine import Pin
import time
import busio
import digitalio
import board

from adafruit_ra8875 import ra8875
from adafruit_ra8875.ra8875 import color565

BLACK = color565(0, 0, 0)
RED = color565(255, 0, 0)
BLUE = color565(0, 255, 0)
GREEN = color565(0, 0, 255)
YELLOW = color565(255, 255, 0)
CYAN = color565(0, 255, 255)
MAGENTA = color565(255, 0, 255)
WHITE = color565(255, 255, 255)

# Configuration for CS and RST pins:
cs = Pin(22)
rst = Pin(15)
SCK = Pin(14)
MOSI = Pin(25)
MISO = Pin(21)

# Config for display baudrate (default max is 6mhz):
BAUDRATE = 6000000

# Setup SPI bus using hardware SPI:
spi = busio.SPI(clock=SCK, MOSI=MOSI, MISO=MISO)

# Create and setup the RA8875 display:
display = ra8875.RA8875(spi, cs=cs_pin, rst=rst_pin, baudrate=BAUDRATE)
display.init()
and the output is

>>> %Run -c $EDITOR_CONTENT
Traceback (most recent call last):
File "<stdin>", line 30, in <module>
File "busio.py", line 53, in __init__
File "microcontroller/__init__.py", line 26, in <module>
NotImplementedError: Microcontroller not supported
>>>

But I was told you can use a Pico with this technology and I am looking to see what pins are supposed to be connected between the RA8875 and the microcontroller. If this does not actually work what do I need to buy, since all I am looking for is a screen to write print statements to? As well how do I code the microcontroller to communicate properly with the screen?

User avatar
tannewt
 
Posts: 3315
Joined: Thu Oct 06, 2016 8:48 pm

Re: Compatibility and coding with the RA8875 and a RPi pico plus

Post by tannewt »

It looks like you're trying to use Blinka on top of MicroPython and it doesn't know what the microcontroller you're using. Instead, I'd suggest using CircuitPython directly. You may need to add a board definition though. We haven't because it isn't an Adafruit board.

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

Return to “Adafruit CircuitPython”