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
/****************************************************** | |
[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! |
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
// 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); |
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
/* | |
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) |