Wikia

CHDK Wiki

Changes: Canon Basic/Scripts/HelloWorld2

Edit

Back to page

(Success)
(Success)
 
Line 33: Line 33:
 
* [[SD940]]
 
* [[SD940]]
 
* [[G12]]
 
* [[G12]]
* ELPH 520 HS
+
* [[ELPH520|ELPH 520 HS]]
   
 
===Unsuccessfull===
 
===Unsuccessfull===

Latest revision as of 04:16, July 7, 2012

Hello World 2Edit

ScriptEdit

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).

TestedEdit

SuccessEdit

UnsuccessfullEdit

Around Wikia's network

Random Wiki