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
/* | |
* Fadecandy | |
* | |
* Copyright (c) 2013 Micah Elizabeth Scott | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of | |
* this software and associated documentation files (the "Software"), to deal in | |
* the Software without restriction, including without limitation the rights to | |
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
* the Software, and to permit persons to whom the Software is furnished to do so, |
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
#include<SmartMatrix_32x32.h> | |
#include<FastLED.h> | |
// NoiseSmearing by Stefan Petrick: https://gist.github.com/StefanPetrick/9ee2f677dbff64e3ba7a | |
// Timed playlist code is from Mark Kriegsman's TimedPlaylist demo here: https://gist.github.com/kriegsman/841c8cd66ed40c6ecaae | |
// Some refactoring by Louis Beaudoin | |
#if FASTLED_VERSION < 3001000 |
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
// ------------ | |
// Blink an LED - Modified for Connected-Displays.com Photon Rain LED Tutorial - Step 1 | |
// ------------ | |
/*------------- | |
We've heavily commented this code for you. If you're a pro, feel free to ignore it. | |
Comments start with two slashes or are blocked off by a slash and a star. | |
You can read them, but your device can't. |
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
{ | |
"latitude": 44.6296, | |
"longitude": -121.8004, | |
"timezone": "America/Los_Angeles", | |
"offset": -8, | |
"currently": { | |
"time": 1456571388, | |
"summary": "Mostly Cloudy", | |
"icon": "partly-cloudy-night", | |
"nearestStormDistance": 0, |
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
// ------------ | |
// Blink an LED - Modified for Connected-Displays.com Photon Rain LED Tutorial - Step 2 | |
// ------------ | |
/*------------- | |
We've heavily commented this code for you. If you're a pro, feel free to ignore it. | |
Comments start with two slashes or are blocked off by a slash and a star. | |
You can read them, but your device can't. |
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
// ------------ | |
// Blink an LED - Modified for Connected-Displays.com Photon Rain LED Tutorial - Step 3 | |
// ------------ | |
/*------------- | |
We've heavily commented this code for you. If you're a pro, feel free to ignore it. | |
Comments start with two slashes or are blocked off by a slash and a star. | |
You can read them, but your device can't. |
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
// ------------ | |
// Blink an LED - Modified for Connected-Displays.com Photon Rain LED Tutorial - Complete | |
// ------------ | |
/*------------- | |
We've heavily commented this code for you. If you're a pro, feel free to ignore it. | |
Comments start with two slashes or are blocked off by a slash and a star. | |
You can read them, but your device can't. |
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
/* | |
Measurement of the FastLED.show() routine. | |
Soft SPI is only supported till now on the Photon. | |
However non-SPI pins seem to be 140us faster then when using the SPI pins. | |
Using those SPI pins in hardware design might be interesting for future compatibility | |
when hardware SPI gets supported. | |
Below the timing test of different pin combinations. The APA102 is updated at 16Mhz. | |
*/ |
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
/* | |
* Wakeup Light - Test "wakeup" Function Only | |
*/ | |
#include "InternetButton.h" | |
InternetButton b = InternetButton(); | |
int wakeupHandler(String command) { | |
Serial.println(); |
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
/* | |
* Wakeup Light - Minimal Version | |
* | |
* Copyright (c) 2016 Louis Beaudoin (Pixelmatix) | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of | |
* this software and associated documentation files (the "Software"), to deal in | |
* the Software without restriction, including without limitation the rights to | |
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
* the Software, and to permit persons to whom the Software is furnished to do so, |
OlderNewer