Using an arduino uno as a logic analyzer
shell.nix
{ pkgs ? import <nixpkgs> {} }:
let
unstable = import <unstable> {};
in
pkgs.mkShell {
buildInputs = [
pkgs.arduino
unstable.pkgs.pulseview
];
shellHook = ''
set -e
export ARDUINO_DIR=${pkgs.arduino-core}/share/arduino
# Needed to fix hanky borken window not resizing in wayland...
export _JAVA_AWT_WM_NONREPARENTING=1
export PATH="$PATH:$ARDUINO_DIR"
'';
}
$ git clone https://github.com/gillham/logic_analyzer
$ cd logic_analyzer
$ arduino .
Tools > port > /dev/usbTTY1
Click upload...
$ pulseview
After selecting the proper ports 8 9 10 11 this jumbled mess appears
Time to start figuring out why it's such a mess and how to clean it up.