Skip to content

Instantly share code, notes, and snippets.

@copyfun
copyfun / rainbow-ring.ino
Last active August 29, 2015 14:26
neopixel + attiny85 + cr1220 = little LED rainbow ring!
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
// choose your pin from 0 - 4
#define PIN 4
// I have only ONE neopixel in this ring and it's v2.
Adafruit_NeoPixel strip = Adafruit_NeoPixel(1, PIN, NEO_GRB + NEO_KHZ800);
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@copyfun
copyfun / flash_win10IoT_onto_sdcard_OSX.sh
Last active September 15, 2023 10:21
Install Windows 10 IoT core on Raspberry Pi 2 using OS X
# download iot core iso file
# curl http://go.microsoft.com/fwlink/?LinkId=616847
curl http://download.microsoft.com/download/8/C/B/8CBE5D09-B5C5-462B-8043-DAC64938FDAC/IOT%20Core%20RPi.ISO > IOT-Core-RPi.iso
# install p7zip for decompress *.iso and *.msi files
sudo port install p7zip
# decompress files
7z x IOT-Core-RPi.ISO
7z x Windows_10_IoT_Core_RPi2.msi