hello everyone, i am using 2.8" TFT spi 30411 to display my image frame on the LCD using portenta breakout, but i am getting senor control failed error : ValueError: Pin(P3) doesn’t exist
OpenMV v4.4.2; MicroPython v1.19-omv-r6; PORTENTA-STM32H747
while using this code
anyone can tell me which pins i have to use to connect my LCD with the portenta breakout.
thankyou,
#TFT screen demo to steam frame buffer to a external SPI screen
import sensor, image, time
from machine import SPI
from OpenMV_TFT import TFT
sensor.reset()
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.set_framesize(sensor.QVGA)
sensor.skip_frames(time = 2000)
clock = time.clock()
spi = SPI(2, baudrate=54000000) #create an SPI bus
#create an instance of the screen driver
#you mustr pass a SPI bus and type of screen (ili9341 or st7735
#optional can pass cs pin and dc pin default is cs='P3' and dc='P9'
screen = TFT(spi, TFT.ili9341)
#set window on screen to write to (x_start, Y_start, width, height)
#the window needs to be inside the resolution of the screen and must match the exact size of fb
screen.set_window(0,0,320,240)
while(True):
clock.tick()
img = sensor.snapshot()
# some image processing code goes here...
screen.write_to_screen(img) #send the fb to the screen
print(clock.fps())
sir I am using portenta breakout board, i have managed to power up the LCD. Still, the only error I am getting is senor control fail, the datasheet provides pins for porenta h7 but I want to connect my LCD with portenta breakout.
The breakout board doesn’t work with any of our camera sensors. Arduino didn’t design the camera connector on that correctly and it can never function.
i already connected portenta h7 and portenta vision shield with the portenta breakout board, now i just want to show the image on tft LCD that i connected with the portenta breakout board but i cant find pins to connect the LCD with portenta breakout.