2026-05-26 07:38:31 -04:00

20 lines
420 B
C

#include <card-os.h>
int main(void)
{
uint8_t value = 0;
card_os_put_rect((card_os_rect){ 0, 0, 0, 0, 0, 240, 320 });
card_os_put_rect((card_os_rect){
.r = 0xFF, .g = 0xFF, .b = 0xFF, .x = 60, .y = 80, .w = 160, .h = 160 });
while (!card_os_get_button(OS_BUTTON_MIDDLE))
{
card_os_put_rect((card_os_rect){
.r = value++, .g = 0, .b = 0, .x = 0, .y = 0, .w = 60, .h = 60 });
}
return 0;
}