prog8/examples/test.p8

28 lines
509 B
Plaintext
Raw Normal View History

%import textio
%zeropage basicsafe
%option no_sysinit
main {
sub start() {
cx16.reset_system()
repeat {
for cx16.r0L in 0 to 255 {
cx16.set_led_brightness(cx16.r0L)
delay()
}
for cx16.r0L in 255 downto 0 {
cx16.set_led_brightness(cx16.r0L)
delay()
}
}
2024-03-01 18:45:16 +00:00
}
sub delay() {
repeat 2000 {
%asm {{
nop
}}
}
}
2024-03-01 18:45:16 +00:00
}