CHDK Wiki
(Adding categories)
m (fixed typo)
Line 1: Line 1:
  +
=Hello World 2=
=PrintSkull=
 
   
 
==Script==
 
==Script==

Revision as of 00:04, 26 August 2010

Hello World 2

Script

private sub Initialize()
    UI.CreatePublic()

    a=LCDMsg_Create()
    LCDMsg_SetStr(a,"Hello World 2!")
    LCDMsg_Move(a,10,10)
    LCDMsg_ChangeColor(a,3)

    b=LCDMsg_Create()
    LCDMsg_SetStr(b,"More Text")
    LCDMsg_Move(b,20,50)
    LCDMsg_ChangeColor(b,2)

    c=LCDMsg_Create()
    LCDMsg_SetStr(c,"even more Text")
    LCDMsg_Move(c,30,90)
    LCDMsg_ChangeColor(c,5)

    d=LCDMsg_Create()
    LCDMsg_SetStr(d,"done")
    LCDMsg_Move(d,40,130)
    LCDMsg_ChangeColor(d,4)
end sub

First Text row is white, 2. orange, 3. bright orange, 4. grey (at least on SD4000).

Tested

Success

Unsuccessfull