The software is based on several different code snippets. You can find links to them in the Sources-Tab.
There are a view different configuration options (like on-time, color, ...), which can be done in the `config.h` file. They are well described in this file.
### Features
1. Fire-Effect turns on when LDR-value gets under `on_val` as defined
2. Second state is entered after the timeout `max_on_time` is reached. The LEDs light in the color, defined as `timeout_...`.
3. If it gets light again the LEDs light in the color, defined as `day_...`. If you want it to be off, set all values to 0.
## Program the ATtiny
### 1. Upload `ArduinoISP` sketch to the Arduino
You can find it in the Examples folder of the Arduino-IDE
### 2. wiring
I use a Arduino Nano to program the ATtiny, but also a Arduino UNO will do fine. Hook up the ATtiny like it is shown in the schematic:
The capacitor is important because it prevents the Arduino from resetting itself while programming the ATtiny.
### 3. Download ATtiny13 support for the IDE
Add the URL `http://drazzy.com/package_drazzy.com_index.json` to the Additional Boards Manager URLs in the IDE Preferences. After that open the Boards-Manager, search for "DIY Attiny" and install it. Now you should find the Attiny13 and some other Attiny Boards in the Board menu.
### 4. Uploading
Open the code in the Arduino IDE and select the Attiny13 as the Board.
<pxmlns:dct="http://purl.org/dc/terms/"xmlns:cc="http://creativecommons.org/ns#"class="license-text">This work by <spanproperty="cc:attributionName">Dustin Brunner</span> is licensed under <arel="license"href="https://creativecommons.org/licenses/by/4.0">CC BY 4.0<imgstyle="height:15px!important;margin-left:3px;vertical-align:text-bottom;"src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1"/><imgstyle="height:15px!important;margin-left:3px;vertical-align:text-bottom;"src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1"/></a></p>
<arel="license"href="http://creativecommons.org/licenses/by/4.0/"><imgalt="Creative Commons Lizenzvertrag"style="border-width:0"src="https://i.creativecommons.org/l/by/4.0/88x31.png"/></a><br/>Dieses Werk von <spanxmlns:cc="http://creativecommons.org/ns#"property="cc:attributionName">Dustin Brunner</span> ist lizenziert unter einer <arel="license"href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Namensnennung 4.0 International Lizenz</a>.