1
2
3
4
5
6
7
8
9
10
11
12
local test = rb.new_image(100, 100)

rb.splash(rb.HZ, string.format("image: %s %dx%d", tostring(test), test:width(), test:height()))

local backdrop = rb.lcd_get_backdrop()
rb.splash(rb.HZ, tostring(backdrop))

-- void (*lcd_bitmap_part)(const fb_data *src, int src_x, int src_y,int stride, int x, int y, int width, int height);
rb.lcd_bitmap_part(backdrop, 0, 0, rb.LCD_WIDTH, 0, 0,rb.LCD_WIDTH, rb.LCD_HEIGHT)
rb.lcd_update()

rb.sleep(rb.HZ)