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 / 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 / ParallelResistors.py
Created September 25, 2011 15:33
Program for computing the best resistors to parallel in order to synthesize the 168 standard resistor values.
MAX_FLOAT = 10E99
NUM_RESISTORS = 3
resistorRoots = [ 1.0, 1.1, 1.2, 1.3, 1.5, 1.6, 1.8, 2.0, 2.2, 2.4, 2.7, 3.0,
3.3, 3.6, 3.9, 4.3, 4.7, 5.1, 5.6, 6.2, 6.8, 7.5, 8.2, 9.1 ]
resistorDecades = range(0, 7)
standardResistors = [r * 10 ** d for r in resistorRoots for d in resistorDecades]
def CalcParallelResistance(r0, r1=MAX_FLOAT, r2=MAX_FLOAT):
@xesscorp
xesscorp / VhdlSnippets.ftd
Created July 17, 2012 05:28
Notepad++ FingerText snippets for speedy VHDL code entry.
div
Ext:vhd
--**********************************************************************[>END<] !$[FingerTextData FingerTextData]@#
comblk
Ext:vhd
$[![(cha)div]!]
--
$[![(cha)div]!]
[>END<] !$[FingerTextData FingerTextData]@#
rng
@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.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 / 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 / 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.
#===============================================================================
@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.
@xesscorp
xesscorp / jsissom.vhd
Created September 16, 2011 03:02
SDRAM interface test code
library IEEE;
use IEEE.STD_LOGIC_1164.all;
use IEEE.STD_LOGIC_ARITH.all;
use IEEE.STD_LOGIC_UNSIGNED.all;
use WORK.CommonPckg.all;
use work.ClkgenPckg.all;
use WORK.SdramCntlPckg.all;
library UNISIM;
use UNISIM.VComponents.all;