parrotgeek1 wrote:geekpersonman wrote:Great news, when can we expect update fixing it?
now
on the same github link
BUT i havent added the detection of the right OS yet
I'll do it soon
can anyone write me some code which turns the entire screen red and then uses arm timer to wait 2 seconds
critor?
Thanks for fixing so quickly.
I haven't tested this, so it might not quite work, but at least it should help you on the right track:
- Code: Select all
#include <os.h>
int main(void) {
if (!has_colors)
return 0;
lcd_incolor();
volatile unsigned char *scr_base = SCREEN_BASE_ADDRESS;
volatile unsigned char *ptr;
unsigned scr_size = SCREEN_BYTES_SIZE;
for (ptr = scr_base; ptr < scr_base + scr_size; ptr += 2) {
*(volatile unsigned short*)ptr = 0b1111100000000000;
}
sleep(2000);
return 0;
}