This is a Canon Basic script for EOS M5, firmware 1.02a (official Canon 1.02 update). If your camera is on a different firmware version, upgrade it first.
For usage instructions, see the
first post.
' clean rec mode palette
' EOS M5, 102a
DIM palette_buffer_ptr = 0x11e24
DIM active_palette_buffer = 0x11e1c
DIM palette_to_zero = 0
public sub check_compat()
check_compat = 0
if Peek16(0xe1f20270) <> 0x32bb then
exit sub
end if
if strcmp("GM1.02A",0xe0429fcc) = 0 then
check_compat = 1
exit sub
end if
end sub
private sub RegisterProcs()
System.Create()
UI.CreatePublic()
end sub
private sub palette_mod()
adr = *palette_buffer_ptr
adr = adr + (palette_to_zero * 4)
if *adr <> 0 then
adr = *adr + 4
memset(adr, 0, 256 * 4)
end if
end sub
private sub Initialize()
RegisterProcs()
ret = check_compat()
if ret=1 then
LockMainPower()
palette_mod()
end if
end sub