Skip to content

Instantly share code, notes, and snippets.

@terrag42
terrag42 / DSEG7Classic-BoldFont.h
Last active December 17, 2016 19:10
Lunar Phase Weather Station
/******************************************************
[Name] 7-segment Font DSEG7 Family
[Version] 0.30(2015.07.20)
[File Type] Derived from TTF(True Type Font)
[License] Free(See link for details)
[Copyrights] Keshikan(http://www.keshikan.net/fonts-e.html)
******************************************************/
// Converted by FontConverterV3.java written by Squix78 http://oleddisplay.squix.ch/ Consider a donation
// In case of problems make sure that you are using the font file with the correct version!
@terrag42
terrag42 / Small Airship Reverse Engineer
Last active September 29, 2016 13:53
Reverse engineering the Small Airship LED DJ party light (8x8 matrix)
// This site could be helpful: http://www.binaryhexconverter.com/binary-to-decimal-converter
#define data_pin 12
#define latch_pin 13
#define clock_pin 14
void setup()
{
int shift = 0;
Serial.begin(9600);
pinMode(data_pin, OUTPUT);
/*
YouTube Video Link: https://youtu.be/oCWGiHfL3NY
Schematic: https://goo.gl/photos/wKB94DZT4ECusWmcA
This mushroom Lights project is built using a TCRT5000 infrared LED/transistor pair.
For the infrared LED, a 100ohm resistor is connected in series with +5v and the LED.
A 4.7k resistor connected in series between +5v and the emitter of the transistor.
Analog pin A1 (pin 2 on digispark) is connected to the emitter of the transistor.
I'm assuming the project is switched off at least once every 50 days so the millis() does not overflow back to zero.
*/
const uint8_t MUSHPIN [] = {0,1,4}; //PWM pins on the Digispark. Connect the infrared sensor to pin 2 (=A1)