Skip to content

Instantly share code, notes, and snippets.

View pashamray's full-sized avatar
:octocat:

Pavlo Shamrai pashamray

:octocat:
View GitHub Profile

first: sudo apt-get install aptitude install: sudo aptitude install --add-user-tag xfce xubuntu-desktop remove: sudo aptitude purge --remove-user-tag xfce '?user-tag(xfce)'

@pashamray
pashamray / 12-saleae.rules
Created June 9, 2015 16:14
12-saleae.rules
ATTRS{idProduct}=="0925", ATTRS{idVendor}=="3881", MODE="666", GROUP="plugdev"
@pashamray
pashamray / programmers.txt
Created January 7, 2015 13:23
2ftbb programmer for Arduino
ftdiprog.name=FT232R Fast BitBang Programmer
ftdiprog.protocol=2ftbb
ftdislow.name=FT232R Low Baud Programmer
ftdislow.protocol=2ftbb
ftdislow.speed=4800
@pashamray
pashamray / boards.txt
Created January 7, 2015 13:21
pinboard 2 atmega8 module for Arduino
##############################################################
atmega8_pb2.name=Pinboard2 ATmega8
atmega8_pb2.upload.protocol=2ftbb
atmega8_pb2.upload.maximum_size=7168
atmega8_pb2.upload.speed=19200
atmega8_pb2.bootloader.low_fuses=0xdf
atmega8_pb2.bootloader.high_fuses=0xca
/*
I recently got one of those 8x8 LED matrices and I was playing with some Game of Life patterns when I found this pretty repeating pattern. I found it by starting with some random patterns. If you look closely you can see the pattern becoming a mirrored version of itself halfway through. Apparently the pattern doesn't repeat like this on an infinite grid but on this wrapping 8x8 grid it does ;-)
FYI, the LED matrix is a bicolor one (green/red) and has an I2C interface (http://www.adafruit.com/products/902). I'm using the colors as follows:
- newly created cells are green
- cells that are at least 10 generations old are red
- other living cells are yellow (simultaneously green+red)
It's hookup up to my Arduino Uno r3.
@pashamray
pashamray / 11-ftdi.rules
Created November 29, 2014 16:08
Add device to plugdev group
ATTRS{idProduct}=="6010", ATTRS{idVendor}=="0403", MODE="666", GROUP="plugdev"
@pashamray
pashamray / avrdude.conf
Created November 26, 2014 18:45
avrdude.conf for Pinboard II avrdude 5.10
#FTDI_Bitbang
programmer
id = "2ftbb";
desc = "FT232R Synchronous BitBang";
type = ft245r;
miso = 5; # DCD
sck = 6; # DSR
mosi = 4; # CTS
reset = 7; # RI
;
@pashamray
pashamray / avrdude.conf
Last active August 29, 2015 14:04
avrdude.conf for Pinboard II avrdude 6.0.1
#FTDI_Bitbang
programmer
id = "2ftbb";
desc = "FT232R Synchronous BitBang";
type = "avrftdi";
miso = 5; # DCD
sck = 6; # DSR
mosi = 4; # CTS
reset = 7; # RI
;
@pashamray
pashamray / AVR-GCC.sublime-build
Created June 25, 2014 11:21
AVG GCC sublime text build system
{
"cmd": ["make", "all"],
"working_dir": "${project_path:${folder}}",
"encoding": "cp1251",
"selector": "source.c",
"variants": [
{
"cmd": ["make", "clean"],
"name": "Clean"
},
@pashamray
pashamray / Makefile
Last active August 29, 2015 14:03
AVR GCC Makefile for avr-gcc
# Hey Emacs, this is a -*- makefile -*-
#
# WinAVR makefile written by Eric B. Weddington, Jörg Wunsch, et al.
# Released to the Public Domain
# Please read the make user manual!
#
# Additional material for this makefile was submitted by:
# Tim Henigan
# Peter Fleury
# Reiner Patommel