This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#Above line will ensure python is envoked on mac/linux | |
import json | |
#if we're running in canopy then everything is already imported AND we're in | |
# interactive mode for matplotlib (meaning you don't need the show() command). | |
try: | |
np | |
no_show = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
############## | |
#Usage: python contract_pads.py gerber_file_name | |
#contracts pads by 10mil (see constand below to change) | |
#assumes units are in inches and fixed point 2.4 format is used | |
#requires numpy and shapely (http://toblerity.org/shapely) | |
#for windows use the installer on the shapely website instead of pip or you'll | |
#be missing a dll | |
############## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Copyright (c) 2015, Chris Takahashi | |
#All rights reserved. | |
# | |
#Redistribution and use in source and binary forms, with or without | |
#modification, are permitted provided that the following conditions are met: | |
# | |
#1. Redistributions of source code must retain the above copyright notice, this | |
#list of conditions and the following disclaimer. | |
# | |
#2. Redistributions in binary form must reproduce the above copyright notice, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//A SUPER SIMPLE soft UART TX for any AVR(ATmega/AT90/ATtiny). | |
// Tested on an ATmega16M1 @ 8mhz. | |
// 46 bytes of code space. | |
// 57600 baud at F_OSC 8mhz | |
// The baud rate will scale with CPU frequency so be careful. | |
// | |
// For basic debug only. | |
// No guarentee this will work. | |
// | |
// By: Chris Takahashi 2020 |