Skip to content

Instantly share code, notes, and snippets.

View Data-ptr's full-sized avatar

Data*Ptr Data-ptr

View GitHub Profile
@Data-ptr
Data-ptr / debianpreseedosx.sh
Created April 21, 2018 16:58
Modifying a Debian ISO (amd64) with a preseed file, but on OSX
#
# 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
/*
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,

Random unlabeled DMX lamps settings

Buttons

Seven segment LED up

 > Mode
|
| &gt; Down
//
// 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