Skip to content

Instantly share code, notes, and snippets.

View Indemnity83's full-sized avatar
👋

Kyle Klaus Indemnity83

👋
View GitHub Profile
@Indemnity83
Indemnity83 / crossFade_Blocking
Last active January 2, 2016 04:09
This Arduino function will fade from the current value of the RGB LED to the passed color over the given time-frame (in milliseconds) then returns (this function is blocking). Copyright 2014 Kyle Klaus This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Fre…
/* crossFade() will fade from the current value of the RGB
* LED to the passed color over the given time-frame (in
* milliseconds) then returns (this function is blocking).
*/
void crossFade(int pins[3], int color[3], int speed) {
// PWM Range, adjustable for differnt bit width units
int PWM = 1024;
// Get the starting colors as PWM values
int startColor[3];
@Indemnity83
Indemnity83 / Brothers Klaus Minecraft Wrenched Clock
Created October 18, 2013 03:03
This is the code from the Minecraft Wrenched clock. For more information check out this video: http://www.youtube.com/watch?v=2PamrMwCNlI
\\ BLOCK 1
\ Installer, just handy to have
: Install PAGE CR 0SP
." Loading Variables " 2 LOAD ." [DONE]" CR
." Compiling Digitizer " 3 LOAD ." [DONE]" CR
." Compiling LCD Display " 4 LOAD ." [DONE]" CR
." Compiling Tocks " 5 LOAD ." [DONE]" CR
." Compiling Ticks " 6 LOAD ." [DONE]" CR
." Registering Buttons " 7 LOAD ." [DONE]" CR
." Compiling Set " 8 LOAD ." [DONE]" CR