This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MCU=attiny85 | |
AVRDUDEMCU=t85 | |
CC=/usr/bin/avr-gcc | |
CFLAGS=-g -Os -Wall -mcall-prologues -mmcu=$(MCU) | |
OBJ2HEX=/usr/bin/avr-objcopy | |
AVRDUDE=/usr/local/bin/avrdude | |
TARGET=blinky | |
all : | |
$(CC) $(CFLAGS) $(TARGET).c -o $(TARGET) | |
$(OBJ2HEX) -R .eeprom -O ihex $(TARGET) $(TARGET).hex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* moody.c ATtiny85_3pinPWM | |
P Barber | |
Jan 2014 | |
Version 1.0 | |
based on http://matt16060936.blogspot.co.uk/2012/04/attiny-pwm.html | |
Code for a mood light based on the ATtiny85 | |
It uses 3 PWM outputs for smooth transitions between a theoretical 16 million colours! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tk.overrideredirect(1) causes full screen behaviour | |
# If run from the command line you can exit with Ctrl-c or Alt-F4 to close window | |
import time | |
import random | |
from datetime import datetime | |
from tkinter import * | |
tk = Tk() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gst-launch-1.0 videotestsrc num-buffers=100 ! tee name=t ! queue ! videoconvert ! xvimagesink sync=false t. ! queue ! videorate ! video/x-raw,framerate=25/1 ! videoconvert ! avenc_mpeg2video bitrate=3000000 ! avimux ! filesink location=test_file.avi async=0 |