Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<eagle version="9.6.1">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.1" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.01" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="yes" active="yes"/>
@fpoussin
fpoussin / eagle2jlc.py
Last active October 14, 2019 12:54
JLC PCB bom/pcl generator
#!/usr/bin/python3
# -*- coding: utf-8 -*-
from os.path import expanduser, sep, dirname, abspath
from argparse import ArgumentParser
import xml.etree.ElementTree as ET
import xlsxwriter
import requests
import time
import re
#!/usr/bin/python3
import requests
import os
import argparse
from subprocess import run, PIPE, STDOUT
parser = argparse.ArgumentParser()
parser.add_argument("version", type=str)
parser.add_argument("-p", "--patch", type=str, help="Extra patches to apply")
[fan]
pin: ar9
hardware_pwm: True
cycle_time: 1.0
kick_start_time: 1.0
[heater_fan extruder_fan]
pin: ar44
fan_speed: 1.0
hardware_pwm: True
#!/usr/bin/python3
import usb.core
import usb.util
import struct
CLINK_USB_PID = 0x1b1c
CLINK_USB_VIP = 0x1c0c
CLINK_GET_PRODUCT = (0x03, 0x9a) + (0,)*(64 - 2)
#!/bin/bash
source /etc/profile
renice +10 $$
JOBS=$(grep -c ^processor /proc/cpuinfo)
SKIP_ARRAY=(Win32)
RETCODE=0
function test_skip {
@fpoussin
fpoussin / makefile
Created April 29, 2016 12:10 — forked from nall/makefile
USBTiny Example OSX Driver
all:
gcc -g -std=c99 -o usbtiny_osx usbtiny_osx.m -framework Foundation -framework IOKit
clean:
rm -rf usbtiny_osx
#ifndef _BOARD_GPIO_H_
#define _BOARD_GPIO_H_
{% for d, v in defines %}
#define {{ d }} {{ v }}
{%- endfor %}
{% for p, v in ports %}
/* PORT {{p}} */
#define VAL_GPIO{{p}}_MODER ( \
# tnx to mamalala
# Changelog
# Changed the variables to include the header file directory
# Added global var for the XTENSA tool root
#
# Output directors to store intermediate compiled files
# relative to the project directory
BUILD_BASE = build
FW_BASE = firmware
@fpoussin
fpoussin / build.sh
Last active May 23, 2018 21:37
Build script for the Xtensa toolchain. (Mingw/linux)
#!/bin/bash
# Author: Fabien Poussin
# Last edit: 20/11/2014
#
# You will need the following mingw32/64 or equivalent linux packages to build it:
# msys gcc msys-coreutils msys-wget msys-autoconf msys-automake msys-mktemp
#
# Use mingw-get to install these.
# run this script from msys's or any unix console.