Does anyone know how to get CHDK working on the Canon Powershot N2?
Quote from: benjimeltzer on 23 / May / 2016, 05:50:17Does anyone know how to get CHDK working on the Canon Powershot N2?There is currently no port for the N2, see this FAQ about unported cameras.
and assembler skills and want to have a go yourself, we're happy to give advice.
private sub Initialize() System.Create() CamInfo_Debug(1)end sub
ASSERT!! EvntProc.c Line 222
First crash with Code: [Select]private sub Initialize() System.Create() CamInfo_Debug(1)end sub
It is not available on DIGIC 6 like on my M3
Indeed, if it were present, it would almost certainly appear in the func_by_*.csv files. This appears to be dryos version rather than digic specific, CamInfo_Debug is present on sx730 (digic 6 / dryos r59)
private sub Initialize() System.Create()' CamInfo_Debug(1) // EvntProc'call_event_proc('GetCameraInformationData') // Script'call_event_proc("GetCameraInformationData") // EvntProc'ExecuteEventProcedure("GetCameraInformationData") // EvntProc with '00003340: UI:Button:0x00000858:PressWideButton '00003350: System.Create '00003350: ExecuteEventProcedure'ExecuteEventProcedure('GetCameraInformationData') // Scriptend sub
00004190: UI:Button:0x0000100D:PressMySmaphoButton00004940: UI:Button:0x0000100E:UnpressMySmaphoButton00005920: UI:Button:0xFFFFFFFF:UnknowControlEvent00009990: UI:Button:0x000010D3:TiltUp00009990: UI:VTMLock00009990: UI:VTMUnLock00009990: UI:SetSyncroDisplayDeviceControllerForLcdDir00009990: UI:SetPanelDirectionToLcdController00010000: UI:Button:0xFFFFFFFF:UnknowControlEvent00010870: UI:Button:0x000010D3:TiltUp00010870: UI:VTMLock00010870: UI:VTMUnLock00010870: UI:SetSyncroDisplayDeviceControllerForLcdDir00010870: UI:SetPanelDirectionToLcdController00010880: UI:Button:0xFFFFFFFF:UnknowControlEvent00011970: UI:Button:0x000010D4:TiltDown00011970: UI:VTMLock00011970: UI:VTMUnLock00011970: UI:SetSyncroDisplayDeviceControllerForLcdDir00011970: UI:SetPanelDirectionToLcdController00011980: UI:Button:0xFFFFFFFF:UnknowControlEvent00017570: UI:Button:0x000010D3:TiltUp00004370: UI:Button:0x00000854:PressTeleButton00004650: UI:Button:0x00000855:UnpressTeleButton00005940: UI:Button:0x00006271:PressTouchPanel00005940: Touch:0x00006271:(0)=(131,58)-100005980: UI:Button:0x0000627E:MultiPressTouchPanel00005980: Touch:0x0000627E:(1)=(544,349)-200005980: UI:Button:0x00006271:PressTouchPanel00005980: Touch:0x00006271:(2)=(544,349)-200006110: UI:Button:0x0000627F:MultiUnpressTouchPanel00006110: Touch:0x0000627F:(3)=(125,53)-100006110: UI:Button:0x00006272:UnpressTouchPanel00006110: Touch:0x00006272:(4)=(131,58)-100006110: UI:Button:0x00006272:UnpressTouchPanel00006110: Touch:0x00006272:(5)=(544,349)-200006410: UI:Button:0x0000627A:SingleTapAfterRelease00006410: Touch:0x0000627A:(6)=(131,58)-100006410: UI:Button:0x0000627A:SingleTapAfterRelease00006410: Touch:0x0000627A:(7)=(544,349)-200010430: UI:Button:0x00006271:PressTouchPanel00010430: Touch:0x00006271:(8)=(606,48)-100010490: UI:Button:0x00006272:UnpressTouchPanel00010490: Touch:0x00006272:(9)=(606,48)-100010490: UI:LogicalEvent:0x0000082a:adr:0,Para:000010490: UI:Button:0x0000082A:PressMenuButton00010490: UI:LogicalEvent:0x0000082b:adr:0,Para:000010490: UI:Button:0x0000082B:UnpressMenuButton00010500: UI:StopWireless00003820: UI:Button:0x000009A1:PressSwOne00003820: SS:IsLens=000003920: UI:Button:0x000009A3:PressSwTwo00003920: SS:IsLens=000004610: UI:Button:0x000009A4:UnpressSwTwo00004630: UI:Button:0x000009A2:UnpressSwOne00007700: UI:Button:0x00006271:PressTouchPanel00007700: Touch:0x00006271:(0)=(711,478)-100007840: UI:Button:0x00006272:UnpressTouchPanel00007840: Touch:0x00006272:(1)=(711,478)-100008140: UI:Button:0x0000627A:SingleTapAfterRelease00008140: Touch:0x0000627A:(2)=(711,478)-100011100: UI:Button:0x00006271:PressTouchPanel00011100: Touch:0x00006271:(3)=(6,472)-100011310: UI:Button:0x00006272:UnpressTouchPanel00011310: Touch:0x00006272:(4)=(6,472)-100011610: UI:Button:0x0000627A:SingleTapAfterRelease00011610: Touch:0x0000627A:(5)=(6,472)-100015100: UI:Button:0x00006271:PressTouchPanel00015100: Touch:0x00006271:(6)=(641,57)-100015160: UI:Button:0x00006272:UnpressTouchPanel00015160: Touch:0x00006272:(7)=(641,57)-100015160: UI:LogicalEvent:0x0000082a:adr:0,Para:000015160: UI:Button:0x0000082A:PressMenuButton00015160: UI:LogicalEvent:0x0000082b:adr:0,Para:000015160: UI:Button:0x0000082B:UnpressMenuButton00015170: UI:StopWireless
This should make it a mostly straightforward port, but lack of buttons means it will need the touch UI like the earlier N models.
'' Torch Mode, best for cams with white AF-beam as N1,N2.'' os.execute("echo for DC_scriptdisk>X:\\script.req")'' os.execute("type Torch.txt>X:\\extend.m")'' Written for N2: ( was https://chdk.fandom.com/wiki/Canon_Basic LED Test )'' Nice for LowQ macro/video or reading map in the dark.'' Await green LED off, turning zoom wheel needs to be first action.'' Open lens with <Play> // PressPBButton() UnpressPBButton()'' LED turns off after touching <wifi>.'' Edit: Some shades of visible text colors (cl):'' N1 Orange=15,30,47,83,180, beige=17, brown=19,20,dkBrown=66,118,ltBrown=120'' N1 LightRed=93, Green=10, DarkGreen=69, Cyan=70, Grey=14,152, black=11,12'' N1 white=3,16, Yellow=209, DarkYellow=21,109,205, LightYellow=18,72,'' N1 Grey=14, LightGrey=7, DarkGrey=6,8,13,21, TransparentDarkGrey=28,49,225'' N2 white=1,4,5, green=2,19,185, yellow=0, beige=9,21,200'' N2 ltyellow=10, brown=17, ltgrey=16, black=33'' N2 DarkYellow=31, Orange=101, Red=187,LightRed=183'' N2 Light Green=192, Blue=184, Cyan=25, Magenta=186 dim a,b,cdim cl=2 '' green text on N2dim t=60dim lin=40private sub Initialize() System.Create() Driver.Create() UI.CreatePublic() a=LCDMsg_Create() LCDMsg_ChangeColor(a,cl) LCDMsg_Move(b,0,lin) LCDMsg_SetStr(a,"AF-beam-torch") Wait(1000) b=LCDMsg_Create() LCDMsg_ChangeColor(b,cl) LCDMsg_Move(b,300,lin) BeepDrive(3) Wait(500) LEDDrive(6,0) 'AF dimmed ''' LEDDrive(4,0) 'AF bright' for c=0 to t LCDMsg_SetNum(b,t-c)'' BeepDrive(3) Wait(100)'' LEDDrive(c%16,0)'' Wait(2000)'' LEDDrive(c%16,1) next LCDMsg_SetNum(b,VbattGet()/10) ''-->=~320 cV LCDMsg_SetStr(a,":o..... Torch") BeepDrive(2) Wait(500)end subprivate sub Terminate()end sub
Started by praveengarlapati Hello, I'm a NEWBIE - HELP!! (Newbies assistance, User Guides and thank you notes)
Started by ruli83 General Help and Assistance on using CHDK stable releases
Started by i4cy General Help and Assistance on using CHDK stable releases
Started by pixelsteam General Help and Assistance on using CHDK stable releases
Started by binngo General Help and Assistance on using CHDK stable releases