Skip to content

Instantly share code, notes, and snippets.

View xesscorp's full-sized avatar
💭
I closed XESS Corp. I'm now at github.com/devbisme.

xesscorp xesscorp

💭
I closed XESS Corp. I'm now at github.com/devbisme.
View GitHub Profile
@xesscorp
xesscorp / cat-flat.py
Created May 4, 2018 13:44
SKiDL version of CAT Board (flat)
# -*- coding: utf-8 -*-
from skidl import *
def C__xesscorp_PRODUCTS_CAT_pcb_CAT_sch():
#===============================================================================
# Component templates.
#===============================================================================
# -*- coding: utf-8 -*-
from skidl import *
def C__xesscorp_KiCad_tools_skidl_uno_r3_Arduino_Uno_R3_From_Scratch_sch():
#===============================================================================
# Component templates.
#===============================================================================
(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 September 1, 2015 15:03
Execute this Python script and it will generate footprint modules for all the CTS 740 series of resistor arrays.
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 April 10, 2015 16:27
Python script for renaming KiCad Gerber files so they'll be accepted by most low-cost PCB fabricators.
#
# 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 December 19, 2014 17:19
This program issues commands to an ESP8266 Wifi module in order to receive an HTML page from a website.
///////////////////////////////////////////////////////////////////////////////////////
// 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 December 7, 2021 17:06
This program issues commands to an ESP8266 Wifi module in order to receive an HTML page from a website.
///////////////////////////////////////////////////////////////////////////////////////
// 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 October 20, 2014 15:44
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.
----------- ESP8266 Demo -----------
--------------------------------------
COMMAND: AT+RST
AT+RST
@xesscorp
xesscorp / kicad_fp-lib-table
Created August 2, 2014 15:31
Place this text into your fp-lib-table file to add these Github-hosted PCB footprint libraries to KiCad.
#
# 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 July 17, 2012 06:44
Generate a package from entities within a VHDL file.
# *********************************************************************
# 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.