Hi! I recently purchased a Cosmic Uniforn display and i have a query re the graphics.line command
I understand the LEDS number from 0 to 31 left to right and 0 to31 top to bottom.
so the top left LED is in position (0,0) and the bottom right LED is (31,31)
So if I have a line in the script
graphics.line(0,0,31,0) i would expect the top row of leds would light from (0,0) to (31,0) inclusive.
However when i run my script LED (31,0) does NOT light up.
If i use graphic.pixel(31,0) i can get that LED to illiminate
I may be doing something wrong (finger trouble!) but could someone run the below script and advise. Just had a thought is graphics.line() different from display.line() Could be that!Many thanks in advance
Geoff
from cosmic import CosmicUnicorn
from picographics import PicoGraphics, DISPLAY_COSMIC_UNICORN as DISPLAY
cosmic = CosmicUnicorn()
graphics = PicoGraphics(DISPLAY)
green = graphics.create_pen(0,255,0)
graphics.set_pen(green)
graphics.line(top left co-ordinates (0,0) to top right cordinates (31,0))
graphics.line(0, 0, 31, 0)
cosmic.update(graphics)