def fill_vline(): display._set_mem_access_mode(0, False, False, False) for i in range(0, 135): display.vline( i, 0, 110, st7789.color565(random.getrandbits(8), random.getrandbits(8), random.getrandbits(8))) display._set_mem_access_mode(2, False, False, False) for i in range(0, 135): display.vline( i, 0, 110, st7789.color565(random.getrandbits(8), random.getrandbits(8), random.getrandbits(8))) clear_screen()
def fill_hline(): display._set_mem_access_mode(0, False, False, False) for i in range(0, 240): display.hline( 0, i, 65, st7789.color565(random.getrandbits(8), random.getrandbits(8), random.getrandbits(8))) display._set_mem_access_mode(1, False, False, False) for i in range(0, 240): display.hline( 0, i, 65, st7789.color565(random.getrandbits(8), random.getrandbits(8), random.getrandbits(8))) clear_screen()
def random_color(): return st7789.color565( random.getrandbits(8), random.getrandbits(8), random.getrandbits(8) )