User manual

528
mikoBasic PRO for PIC32
MikroElektronika
‘ *
‘ * Draw lled circles
‘ *
#IFDEF FILL_DEMO
T6963C_circle_ll(120, 64, 60, T6963C_WHITE)
T6963C_circle_ll(120, 64, 55, T6963C_BLACK)
T6963C_circle_ll(120, 64, 50, T6963C_WHITE)
T6963C_circle_ll(120, 64, 45, T6963C_BLACK)
T6963C_circle_ll(120, 64, 40, T6963C_WHITE)
T6963C_circle_ll(120, 64, 35, T6963C_BLACK)
T6963C_circle_ll(120, 64, 30, T6963C_WHITE)
T6963C_circle_ll(120, 64, 25, T6963C_BLACK)
T6963C_circle_ll(120, 64, 20, T6963C_WHITE)
T6963C_circle_ll(120, 64, 15, T6963C_BLACK)
T6963C_circle_ll(120, 64, 10, T6963C_WHITE)
T6963C_circle_ll(120, 64, 5, T6963C_BLACK)
#ENDIF
Delay_ms(1000)
T6963C_sprite(76, 4, @einstein, 88, 119) ‘ Draw a sprite
Delay_ms(1000)
T6963C_setGrPanel(1) ‘ Select other graphic panel
T6963C_image(@mikroE_240x128_bmp)
T6963C_displayGrPanel(1)
Delay_ms(1000)
#IFDEF PARTIAL_IMAGE_DEMO
T6963C_grFill(0)
T6963C_PartialImage(0, 0, 64, 64, 240, 128, @mikroE_240x128_bmp) Display partial
image
Delay_ms(1000)
T6963C_graphics(0)
#ENDIF
T6963C_image(@mikroE_240x128_bmp)
T6963C_graphics(1)
T6963C_displayGrPanel(0)
while TRUE ‘ Endless loop
‘ * If RB8 is pressed, toggle the display between graphic panel 0 and graphic 1
if(RB8_bit <> 0) then
T6963C_graphics(1)
T6963C_text(0)
Delay_ms(300)
‘ * If RB9 is pressed, display only graphic panel
else
if (RB9_bit <> 0) then
Inc(panel)
panel = panel and 1
T6963C_displayGrPanel(panel)
Delay_ms(300)