Skip to content

Instantly share code, notes, and snippets.

@dmurph
dmurph / FastLED_RGBW.h
Last active November 29, 2023 19:50
led-test-sketch
/* FastLED_RGBW
*
* Hack to enable SK6812 RGBW strips to work with FastLED.
*
* Original code by Jim Bumgardner (http://krazydad.com).
* Modified by David Madison (http://partsnotincluded.com).
*
*/
// From: https://www.partsnotincluded.com/fastled-rgbw-neopixels-sk6812/
@dmurph
dmurph / ExtractDocsIDB.md
Last active June 21, 2017 00:04
Extract Docs IDB State
function json_db_items(os_name, keys, log, db) {
  var txn = db.transaction([os_name], "readonly");
  txn.onerror = (event)=>{
    log(event);
  }
  var os = txn.objectStore(os_name);
  let i = 0;
  var str = [];
  let num = keys.length;