Searched refs:fbuf (Results 1 – 6 of 6) sorted by relevance
/AliOS-Things-master/components/py_engine/tests/extmod/ |
A D | framebuf1.py | 26 fbuf.fill(1) 28 fbuf.fill(0) 43 print(fbuf.pixel(0, 0), fbuf.pixel(1, 1)) 46 fbuf.fill(0) 51 fbuf.fill(0) 56 fbuf.fill(0) 61 fbuf.fill(0) 67 fbuf.fill(0) 72 fbuf.fill(0) 77 fbuf.fill(0) [all …]
|
A D | framebuf4.py | 21 fbuf.fill(0x0F) 23 fbuf.fill(0xA0) 27 fbuf.pixel(0, 0, 0x01) 29 fbuf.pixel(w - 1, 0, 0x02) 31 fbuf.pixel(w - 1, h - 1, 0x03) 33 fbuf.pixel(0, h - 1, 0x04) 37 print(fbuf.pixel(0, 0), fbuf.pixel(w - 1, 0), fbuf.pixel(w - 1, h - 1), fbuf.pixel(0, h - 1)) 38 print(fbuf.pixel(1, 0), fbuf.pixel(w - 2, 0), fbuf.pixel(w - 2, h - 1), fbuf.pixel(1, h - 1)) 41 fbuf.fill_rect(0, 0, w, h, 0x0F) 43 fbuf.fill_rect(0, 0, w, h, 0xF0) [all …]
|
A D | framebuf16.py | 21 fbuf.fill(0xFFFF) 23 fbuf.fill(0x0000) 27 fbuf.pixel(0, 0, 0xEEEE) 28 fbuf.pixel(3, 0, 0xEE00) 29 fbuf.pixel(0, 4, 0x00EE) 34 print(fbuf.pixel(0, 4), fbuf.pixel(1, 1)) 37 fbuf.fill(0x0000) 40 fbuf.scroll(0, 1) 42 fbuf.scroll(1, 0) 44 fbuf.scroll(-1, -2) [all …]
|
A D | framebuf2.py | 23 fbuf.fill(3) 25 fbuf.fill(0) 29 fbuf.pixel(0, 0, 1) 30 fbuf.pixel(3, 0, 2) 31 fbuf.pixel(0, 4, 3) 32 fbuf.pixel(3, 4, 2) 36 print(fbuf.pixel(0, 4), fbuf.pixel(1, 1)) 39 fbuf.fill(0) 42 fbuf.scroll(0, 1) 44 fbuf.scroll(1, 0) [all …]
|
A D | framebuf8.py | 20 fbuf = framebuf.FrameBuffer(buf, w, h, framebuf.GS8) variable 23 fbuf.fill(0x55) 27 fbuf.pixel(0, 0, 0x11) 28 fbuf.pixel(w - 1, 0, 0x22) 29 fbuf.pixel(0, h - 1, 0x33) 30 fbuf.pixel(w - 1, h - 1, 0xFF) 34 print(hex(fbuf.pixel(0, h - 1)), hex(fbuf.pixel(1, 1)))
|
/AliOS-Things-master/components/py_engine/engine/drivers/display/ |
A D | lcd160cr_test.py | 71 fbuf = framebuf.FrameBuffer(bytearray(w * h * 2), w, h, framebuf.RGB565) 91 fbuf.fill(lcd.rgb(128 + int(64 * math.cos(0.1 * i)), 128, 192)) 92 fbuf.line( 99 fbuf.hline(0, ty, w, lcd.rgb(64, 64, 64)) 100 fbuf.vline(tx, 0, h, lcd.rgb(64, 64, 64)) 101 fbuf.rect(tx - 3, ty - 3, 7, 7, lcd.rgb(64, 64, 64)) 105 fbuf.blit(mlogo, x, y) 107 fbuf.text( 113 lcd.show_framebuf(fbuf)
|
Completed in 9 milliseconds