Skip to content

Instantly share code, notes, and snippets.

View nedos's full-sized avatar

Dmitry Nedospasov nedos

View GitHub Profile
@nedos
nedos / read_saleae.py
Last active April 6, 2018 15:44
This script parses a saleae csv export to generate a verilog simulation file (in picoseconds)
#!/usr/bin/python
import sys
import csv
def print_usage():
print "Usage: {} <csv_file>".format(sys.argv[0])
if len(sys.argv) != 2:
print "Not enough arguments"
print_usage()

Keybase proof

I hereby claim:

  • I am nedos on github.
  • I am nedos (https://keybase.io/nedos) on keybase.
  • I have a public key whose fingerprint is 3651 9F22 B444 54E9 F120 119F 7A1F 35EE 64DC FD9F

To claim this, I am signing this object:

@nedos
nedos / arduino.sh
Created June 23, 2011 14:05
Flash a 'virgin' ATMEGA328PU with the Arduino Bootloader. On MacOS simply brew install avrdude --with-usb
#!/bin/sh
OPTS="-p m328p -c avrisp2 -P usb"
PWD="$(pwd)"
# Unlock the chip
avrdude $OPTS -U lock:w:0x3f:m
# Set the Fuses
avrdude $OPTS -e -U lfuse:w:0xff:m -U hfuse:w:0xda:m -U efuse:w:0x05:m