Skip to content

Instantly share code, notes, and snippets.

Avatar
🧐
*reviewing your code*

Niklas Hauser salkinium

🧐
*reviewing your code*
View GitHub Profile
@salkinium
salkinium / macros.cpp
Last active Aug 29, 2015
Concept for typesafe bit operations for register mappings
View macros.cpp
// this is part of a xpcc unittest:
// https://github.com/roboterclubaachen/xpcc/blob/develop/src/xpcc/architecture/peripheral/test/register_test.hpp#L20
// more operations can be seen here:
// https://github.com/roboterclubaachen/xpcc/blob/develop/src/xpcc/architecture/peripheral/test/register_test.cpp#L16
// complete macro definitions are available here:
// https://github.com/roboterclubaachen/xpcc/blob/develop/src/xpcc/architecture/peripheral/register.hpp#L55
// see the type-safe registers in action here:
// https://github.com/roboterclubaachen/xpcc/blob/develop/src/xpcc/driver/inertial/lis302.hpp#L61
@salkinium
salkinium / gerberize.py
Last active Jul 29, 2020
Python script to generate Gerber ZIP files from KiCAD files in the right format for JLCPCB
View gerberize.py
#!/Applications/Kicad/kicad.app/Contents/Frameworks/Python.framework/Versions/Current/bin/python
import sys
sys.path.insert(0,"/Applications/Kicad/kicad.app/Contents/Frameworks/python/site-packages/")
import os
import shutil
import zipfile
import tempfile
import pcbnew
You can’t perform that action at this time.