Skip to content

Instantly share code, notes, and snippets.

@alexisvl
alexisvl / -
Created March 21, 2015 14:38
KiCad eeschema sine wave symbol generator
#!/usr/bin/ruby
# Generates a 'sine wave' KiCad schematic symbol, for annotation
print("Amplitude (mils)? ")
amp = gets.to_i
print("Period (mils)? ")
per = gets.to_i
print("Number of cycles? ")
diff --git a/eeschema/dialogs/dialog_choose_component.cpp b/eeschema/dialogs/dialog_choose_component.cpp
index b16a7a9..7f88dbc 100644
--- a/eeschema/dialogs/dialog_choose_component.cpp
+++ b/eeschema/dialogs/dialog_choose_component.cpp
@@ -346,6 +346,12 @@ void DIALOG_CHOOSE_COMPONENT::renderPreview( LIB_PART* aComponent, int aUnit )
NEGATE( offset.x );
NEGATE( offset.y );
+ // Avoid rendering when either dimension is zero
+ int width, height;
Open On-Chip Debugger 0.9.0-dev-00358-gd3c2679 (2015-04-02-20:03)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.sourceforge.net/doc/doxygen/bugs.html
Info : If you need SWD support, flash KT-Link buffer from https://github.com/bharrisau/busblaster
and use dp_busblaster_kt-link.cfg instead
Warn : Interface already configured, ignoring
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
adapter speed: 500 kHz
adapter_nsrst_delay: 100
@alexisvl
alexisvl / kicat.py
Last active December 28, 2015 18:17
#!/usr/bin/env python3
# Public domain.
import argparse
import collections
import os
import sys
Library = collections.OrderedDict