@title modetestprint_screen 1V=get_video_buttonif V=0 then print "No video button."if V=1 then print "Cam has video button."M=get_modeif M=0 then print_screen 2 print "Rec mode."endifif M=1 then print_screen 3 print "Play mode."endifif M=2 then print_screen 4 print "Video mode."endifsleep 5000
any success with the LED control for the sd1100is ?
void ubasic_set_led(int led, int state, int bright){ int leds[] = {0x134,0x138,0x134,0x130,0xd4,0x3030,0x3030}; // green=4 | yellow | (not used) | orange | blue | af beam | timer// if(led < 4 || led > 10 || led == 6) // map to valid params; no extra TIMER LED (is same as AF) volatile long *p=(void*)0xc0220000 + leds[(led-4)%sizeof(leds)]; if (state) p[0]=0x46; else p[0]=0x44;}
Can I set SD1100 to Macro using property values?If so what numbers should I use?
@title Test LED Scriptsleep 500print "blue on"set_led 8 1 60sleep 500print "blue off"set_led 8 0end