Skip to content

Instantly share code, notes, and snippets.

xesscorp xesscorp

View GitHub Profile
@xesscorp
xesscorp / cat-flat.py
Created May 4, 2018
SKiDL version of CAT Board (flat)
View cat-flat.py
# -*- coding: utf-8 -*-
from skidl import *
def C__xesscorp_PRODUCTS_CAT_pcb_CAT_sch():
#===============================================================================
# Component templates.
#===============================================================================
View Arduino_Uno_R3_From_Scratch.py
# -*- coding: utf-8 -*-
from skidl import *
def C__xesscorp_KiCad_tools_skidl_uno_r3_Arduino_Uno_R3_From_Scratch_sch():
#===============================================================================
# Component templates.
#===============================================================================
View 2.54SOP4.kicad_mod
(module 2.54SOP4 (layer F.Cu) (tedit 56058C23)
(fp_text reference U** (at 0 4.42) (layer F.SilkS)
(effects (font (size 1.2 1.2) (thickness 0.2)))
)
(fp_text value 2.54SOP4 (at 0 -4.42) (layer F.SilkS)
(effects (font (size 1.2 1.2) (thickness 0.2)))
)
(fp_line (start -2.55 -1.17) (end -2.55 1.95) (layer F.SilkS) (width 0.2))
(fp_line (start -2.55 1.95) (end 2.55 1.95) (layer F.SilkS) (width 0.2))
(fp_line (start 2.55 1.95) (end 2.55 -1.95) (layer F.SilkS) (width 0.2))
@xesscorp
xesscorp / cts_res_arrays.py
Created Sep 1, 2015
Execute this Python script and it will generate footprint modules for all the CTS 740 series of resistor arrays.
View cts_res_arrays.py
class Point:
def __init__(self, x, y):
self.x = x
self.y = y
def max(self, pt):
return Point(max(self.x, pt.x), max(self.y, pt.y))
def min(self, pt):
return Point(min(self.x, pt.x), min(self.y, pt.y))
@xesscorp
xesscorp / rename_gerbers.py
Created Apr 10, 2015
Python script for renaming KiCad Gerber files so they'll be accepted by most low-cost PCB fabricators.
View rename_gerbers.py
#
# KiCad outputs Gerber files with extensions that aren't recognized by the most commonly used
# PCB manufacturers. This Python script renames the files to what they expect.
# Just execute this script in your KiCad project directory and the Gerber files will be renamed.
#
import glob
import os
# Make a list of .gbr and .drl files in the current directory.
@xesscorp
xesscorp / esp8266.ino
Created Dec 19, 2014
This program issues commands to an ESP8266 Wifi module in order to receive an HTML page from a website.
View esp8266.ino
///////////////////////////////////////////////////////////////////////////////////////
// This program uses the ESP8266 Wifi module to access a webpage. It's an adaptation of
// the program discussed at http://hackaday.io/project/3072/instructions
// and shown here http://dunarbin.com/esp8266/retroBrowser.ino .
//
// This program was ported to the ZPUino 2.0, a softcore processor that runs on an FPGA
// and emulates an Arduino.
//
// This program works with version 0018000902 of the ESP8266 firmware.
///////////////////////////////////////////////////////////////////////////////////////
@xesscorp
xesscorp / esp8266.ino
Last active Aug 28, 2019
This program issues commands to an ESP8266 Wifi module in order to receive an HTML page from a website.
View esp8266.ino
///////////////////////////////////////////////////////////////////////////////////////
// This program uses the ESP8266 Wifi module to access a webpage. It's an adaptation of
// the program discussed at http://hackaday.io/project/3072/instructions
// and shown here http://dunarbin.com/esp8266/retroBrowser.ino .
//
// This program was ported to the ZPUino 2.0, a softcore processor that runs on an FPGA
// and emulates an Arduino.
//
// This program works with version 00160901 of the ESP8266 firmware.
///////////////////////////////////////////////////////////////////////////////////////
@xesscorp
xesscorp / ESP8266_connection_trace
Created Oct 20, 2014
This is a trace of the commands sent to and the responses received from an ESP8266 Wifi module as it connects to a website and receives a page of HTML.
View ESP8266_connection_trace
----------- ESP8266 Demo -----------
--------------------------------------
COMMAND: AT+RST
AT+RST
@xesscorp
xesscorp / kicad_fp-lib-table
Created Aug 2, 2014
Place this text into your fp-lib-table file to add these Github-hosted PCB footprint libraries to KiCad.
View kicad_fp-lib-table
#
# LIST OF KICAD GITHUB-HOSTED PCB FOOTPRINT LIBRARIES
#
# Place this text into your fp-lib-table file to add these Github-hosted PCB footprint libraries to KiCad.
#
# You can omit a library by placing a '#' at the start of that particular line.
#
# Each library is listed twice. The first line is for when you want read-only access to the library.
# If you also want to modify the footprints in the library, then comment the first line and
# uncomment the second line. You must also create a local directory for storing your modified
@xesscorp
xesscorp / vhdlpckg.pl
Created Jul 17, 2012
Generate a package from entities within a VHDL file.
View vhdlpckg.pl
# *********************************************************************
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
You can’t perform that action at this time.