CHDK Wiki
Advertisement

Canon Basic Reference

Canons firmware includes a scripting language, which appears to be a flavor of basic. Thanks to recent work by Alfredo Ortega and Oren Isacson of core labs, it is now known how to execute scripts in this language. They have made available their defcon presentation and some preliminary documentation, read more in this forum thread.

LCDMsg

You need to call this first:

UI.CreatePublic()

And create "handle" for your LCD Message:

a=LCDMsg_Create()

LCDMsg_SetStr

LCDMsg_SetStr(a,"Hello World")

LCDMsg_SetStr(HANDLE, STRING)

LCDMsg_ChangeColor

LCDMsg_ChangeColor(a,3)

LCDMsg_ChangeColor(HANDLE, COLOR)

Number Color
0 Black
1

Black

2 Orange
3 White
4 Grey
5 Bright Orange
6 Orange

LCDMsg_Move

LCDMsg_Move(a, 10, 10)

LCDMsg_Move(HANDLE, LEFT, TOP)

Advertisement