Testing done using a Canon EOS 600D and a Canon EF-S18-55mm f/3.5-5.6 IS II.
- VBAT
- DET (common with P-GND on lens side)
- P-GND
- VDD
- DCL
- DLC
| #!/usr/bin/python | |
| import sys | |
| # Credit: https://crypto.stackexchange.com/questions/52292/what-is-fast-prime | |
| generators = [ | |
| (2, 11), (6, 13), (8, 17), (9, 19), (3, 37), (26, 53), (20, 61), (35, 71), | |
| (24, 73), (13, 79), (6, 97), (51, 103), (53, 107), (54, 109), (42, 127), | |
| (50, 151), (78, 157), | |
| ] |
| #!/usr/bin/python | |
| import detect | |
| # Original constants | |
| primes = [3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, | |
| 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167] | |
| prints = [6, 30, 126, 1026, 5658, 107286, 199410, 8388606, 536870910, 2147483646, 67109890, 2199023255550, | |
| 8796093022206, 140737488355326, 5310023542746834, 576460752303423486, 1455791217086302986, | |
| 147573952589676412926, 20052041432995567486, 6041388139249378920330, 207530445072488465666, |
| /* | |
| * Algorithm to process Wiimote IR tracking data into a usable pointer position | |
| * by tracking the sensor bar. | |
| * | |
| * Copyright (c) 2008-2011 Hector Martin "marcan" <marcan@marcan.st> | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions are met: | |
| * |
| #!/usr/bin/env python3 | |
| import os, tempfile, shutil, subprocess, ctypes | |
| class BaseAsmFunc(object): | |
| def __init__(self, sfunc): | |
| self.source = sfunc.__doc__ | |
| self._tmp = tempfile.mkdtemp() + os.sep | |
| self.compile(self.source) | |
| def compile(self, source): |
| #!/usr/bin/python3 | |
| import sys, socket, struct | |
| import PIL, PIL.Image, PIL.ImageOps | |
| DENSITY_MIN = 0 | |
| DENSITY_LIGHT = 1 | |
| DENSITY_NORMAL = 2 | |
| DENSITY_HEAVY = 3 | |
| DENSITY_MAX = 4 |
| /* | |
| mini - a Free Software replacement for the Nintendo/BroadOn IOS. | |
| ghettohci - debug over FT232 over OHCI | |
| Copyright (C) 2012 Hector Martin "marcan" <marcan@marcansoft.com> | |
| # This code is licensed to you under the terms of the GNU GPL, version 2; | |
| # see file COPYING or http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt | |
| */ |
| #!/usr/bin/env python3 | |
| from __future__ import print_function | |
| import sys, argparse, codecs | |
| from PIL import Image, ImagePalette | |
| xterm256colors = [ # http://pln.jonas.me/xterm-colors | |
| 0x00, 0x00, 0x00, 0x80, 0x00, 0x00, 0x00, 0x80, 0x00, 0x80, 0x80, 0x00, | |
| 0x00, 0x00, 0x80, 0x80, 0x00, 0x80, 0x00, 0x80, 0x80, 0xc0, 0xc0, 0xc0, | |
| 0x80, 0x80, 0x80, 0xff, 0x00, 0x00, 0x00, 0xff, 0x00, 0xff, 0xff, 0x00, | |
| 0x00, 0x00, 0xff, 0xff, 0x00, 0xff, 0x00, 0xff, 0xff, 0xff, 0xff, 0xff, |
| #!/usr/bin/env python | |
| import os, tempfile, shutil, subprocess | |
| class AsmException(Exception): | |
| pass | |
| class BaseAsm(object): | |
| def __init__(self, source, addr = 0): | |
| self.source = source | |
| self._tmp = tempfile.mkdtemp() + os.sep |
| from asm import * | |
| blob = open("image.bin", "rb").read() | |
| start_addr = 0x08003000 | |
| patch_start = start_addr + len(blob) | |
| assert patch_start % 4 == 0 |