Skip to content

Instantly share code, notes, and snippets.

View gist:8706a7bca34770b443332e1209b9bca1
<?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 Oct 14, 2019
JLC PCB bom/pcl generator
View eagle2jlc.py
#!/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
View build-ubuntu-mainline.py
#!/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")
View klippler-4max.cfg
[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
View rmi-power.py
#!/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)
View chbuild.sh
#!/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 Apr 29, 2016 — forked from nall/makefile
USBTiny Example OSX Driver
View makefile
all:
gcc -g -std=c99 -o usbtiny_osx usbtiny_osx.m -framework Foundation -framework IOKit
clean:
rm -rf usbtiny_osx
View board_gpio.tpl
#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 ( \
View Makefile
# 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
Build script for the Xtensa toolchain. (Mingw/linux)
View build.sh
#!/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.