Skip to content

Instantly share code, notes, and snippets.

@nickoe
nickoe / interpreter.ino
Created January 8, 2025 22:09 — forked from edgar-bonet/interpreter.ino
Simple Arduino command line interpreter
/*
* interpreter.ino: Simple Arduino command line interpreter.
*
* This is intended solely as a template for building richer,
* application-specific interpreters. Add your specific commands to the
* exec() function, and whatever you need to setup() and loop().
*
* Usage:
* Talk to it through the serial port at 9600/8N1. Commands should be
* terminated by CR (\r), answers are terminated by CRLF (\r\n). This
@nickoe
nickoe / compare-bom-generators.sh
Created February 14, 2018 15:42 — forked from odurc/compare-bom-generators.sh
compare BOM files generated by KiCad using python2 and python3
#!/usr/bin/bash
generators=(bom_csv_grouped_by_value.py bom_csv_grouped_by_value_with_fp.py bom_csv_sorted_by_ref.py bom_html_by_value.py bom_html_grouped_by_value.py bom_html_with_advanced_grouping.py bom_sorted_by_ref.py)
for generator in ${generators[@]}; do
python2 ${generator} /tmp/bom-test.xml /tmp/bom-test-py2.out
python3 ${generator} /tmp/bom-test.xml /tmp/bom-test-py3.out
[[ `diff /tmp/bom-test-py2.out /tmp/bom-test-py3.out` ]] && echo "Fail: ${generator}" && exit 1
done