Skip to content

Instantly share code, notes, and snippets.

@rali717
rali717 / kicad_picknplace_assistant.py
Created February 23, 2017 15:18 — forked from pwuertz/kicad_picknplace_assistant.py
KiCad PCB pick and place assistant
#!/usr/bin/python2
import re
import os
import numpy as np
import pcbnew
import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle, Circle, Ellipse, FancyBboxPatch
@rali717
rali717 / screen-test-bmp.py
Created February 14, 2016 12:01
Generate bmps for screen testings
import Image
img = Image.new( 'RGB', (1440,900), "black") # create a new black image
pixels = img.load() # create the pixel map
for i in range(img.size[0]): # for every pixel:
for j in range(0,img.size[1],2):
pixels[i,j] = (255, 255, 255) # set the colour accordingly