Seven segment LED up
> Mode
|
| > Down
This file contains hidden or 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
| # | |
| # Figured out using: | |
| # https://wiki.debian.org/DebianInstaller/Preseed/EditIso | |
| # https://www.thegeekstuff.com/2009/07/how-to-view-modify-and-recreate-initrd-img/ | |
| # https://gist.github.com/Aktau/5510437 | |
| # https://www.cyberciti.biz/faq/how-to-extract-a-deb-file-without-opening-it-on-debian-or-ubuntu-linux/ | |
| # | |
| ## Go home | |
| cd |
This file contains hidden or 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
| /* | |
| DMX_Master.ino - Example code for using the Conceptinetics DMX library | |
| Copyright (c) 2013 W.A. van der Meeren <danny@illogic.nl>. All right reserved. | |
| This library is free software; you can redistribute it and/or | |
| modify it under the terms of the GNU Lesser General Public | |
| License as published by the Free Software Foundation; either | |
| version 3 of the License, or (at your option) any later version. | |
| This library is distributed in the hope that it will be useful, |
This file contains hidden or 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
| // | |
| // A little macro that takes a percentage and chnages it to 0-255 | |
| // | |
| #define MAX_VALUE 255 | |
| #define PER_TO_VAL(percent) ((MAX_VALUE/100) * percent) | |
| typedef enum DmxCh { | |
| RED = 1, | |
| GREEN = 2, | |
| BLUE = 3 |
OlderNewer