Skip to content

Instantly share code, notes, and snippets.

Avatar
😝
...

Vasile Guta-Ciucur funlw65

😝
...
View GitHub Profile
View canon-ef-protocol-notes.md

Testing done using a Canon EOS 600D and a Canon EF-S18-55mm f/3.5-5.6 IS II.

Pinout

  1. VBAT
  2. DET (common with P-GND on lens side)
  3. P-GND
  4. VDD
  5. DCL
  6. DLC
@funlw65
funlw65 / pascal-test-snippet.pas
Created Apr 12, 2018
Snippet for a pascal program that generates json files for Visual Studio Code
View pascal-test-snippet.pas
{lets look a little at the toolchain folder structure - we need something
from there.}
chdir(getenvironmentvariable('HOME'));
chdir(v_toolchain_folder+'/lib/gcc/arm-none-eabi');
{good, now lets see the name of the subfolder in here which is composed of
numbers and dots, in this format "x.x.x"}
if(FindFirst('*',faDirectory, _fsearch) <> 0) then begin
writeln('Error! We are not in the folder we should be...');
halt(1);
end;
@funlw65
funlw65 / isometricscrewthread.js
Created Mar 27, 2017 — forked from gustavolsson/isometricscrewthread.js
This code generates an ISO metric screw thread given a set of parameters. The code is intended for Tinkercad Shape Scripts but it should be straightforward to port it to other platforms.
View isometricscrewthread.js
/*
Copyright (c) 2012 Gustav Olsson
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
You can’t perform that action at this time.