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
/****************************************************************************** | |
Copyright (c) 2015 Particle Industries, Inc. All rights reserved. | |
This program 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 program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
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 "application.h" | |
STARTUP(System.enableFeature(FEATURE_RETAINED_MEMORY)); | |
// if you want to change sleepTimeSeconds or reset sleepTimeSeconds back to maxSleepTimeSeconds, change the value of magicWordComparison and reflash application | |
const uint32_t magicWordComparison = 0xDEADBEEF; | |
const unsigned int maxSleepTimeSeconds = 10; | |
retained unsigned int sleepTimeSeconds = maxSleepTimeSeconds; | |
retained uint32_t magicWord = magicWordComparison; |
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
STARTUP(System.enableFeature(FEATURE_RETAINED_MEMORY)); | |
const int delayAfterPublishMilliseconds = 5000; | |
const uint32_t magicWordComparison = 0xDEADBEEF; | |
retained uint32_t maxNetworkSuspendTimeSeconds = 0; | |
retained uint32_t maxNetworkDisconnectTime = 0; | |
retained uint32_t maxNetworkOffTime = 0; | |
retained uint32_t maxNetworkFunctionTime = 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
/* MCPWM basic config example | |
This example code is in the Public Domain (or CC0 licensed, at your option.) | |
Unless required by applicable law or agreed to in writing, this | |
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | |
CONDITIONS OF ANY KIND, either express or implied. | |
*/ | |
/* |
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
<script type="text/javascript" src="//cdn.rawgit.com/MrRio/jsPDF/master/dist/jspdf.min.js"></script> <script type="text/javascript" src="//cdn.rawgit.com/MrRio/jsPDF/master/plugins/addimage.js"></script> <script type="text/javascript" src="//cdn.rawgit.com/MrRio/jsPDF/master/plugins/png_support.js"></script> <script src="http://cdn.rawgit.com/MrRio/jsPDF/master/libs/png_support/png.js"></script> <script src="http://cdn.rawgit.com/MrRio/jsPDF/master/libs/png_support/zlib.js"></script> | |
<input id="inp" type='file'> | |
<p id="b64"></p> | |
<img id="img" height="150"> | |
<button id="btnDownload">Download PDF</button> |
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
// THIS IS NOT ARDUINO CODE -- DON'T INCLUDE IN YOUR SKETCH. It's a | |
// command-line tool that outputs a gamma correction table to stdout; | |
// redirect or copy and paste the results into header file for the | |
// RGBmatrixPanel library code. | |
// | |
// Optional 2 parameters: | |
// - bit depth (default=4, for 16 output levels). | |
// - tableSize (default=256 for gamma_table[256]) | |
// | |
// typical usage: |
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 "FastLED.h" | |
#define LED_PIN 3 | |
#define LED_TYPE WS2811 | |
#define COLOR_ORDER RGB | |
#define NUM_LEDS 50 | |
CRGB leds[NUM_LEDS]; | |
// Twinkling 'holiday' lights that fade up and down in brightness. | |
// Colors are chosen from a palette; a few palettes are provided. |
OlderNewer