forked from micropython/micropython
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Description
CircuitPython version
Adafruit CircuitPython 8.1.0-beta.1-36-g7d02bff6b on 2023-04-20; Adafruit Feather RP2040 DVI with rp2040Code/REPL
import board
import displayio
from bitmaptools import draw_line
display = board.DISPLAY
group = displayio.Group()
palette = displayio.Palette(1)
palette[0] = 0xFFFFFF
a2 = displayio.Group(x=0, y=0, scale=1)
a2bitmap = displayio.Bitmap(300, 300, 2)
tile2 = displayio.TileGrid(a2bitmap, pixel_shader=palette, x=0, y=0)
draw_line(a2bitmap, 1, 1, 1, 300, 1)
draw_line(a2bitmap, 1, 1, 200, 200, 1,)
a2.append(tile2)
group.append(a2)
display.show(group)Behavior
Description
So Not sure if my display resolution is all wrong, but I should get 640x480? If it is my mistake, sorry :).
However this script works fine in the Pyportal Titano https://github.com/jposada202020/CircuitPython_uplot/blob/main/examples/uplot_readme_example.py
But with the DVI is blown-up and some of the plots could not be seen.
Additional information
No response
