Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added license lines

  • Loading branch information...
commit d9b0b337a078d5fa9dc36b16194d59152170328c 1 parent 53a1a21
@ladyada ladyada authored
Showing with 11 additions and 3 deletions.
  1. +6 −0 HL1606stripPWM.cpp
  2. +5 −3 HL1606stripPWM.h
View
6 HL1606stripPWM.cpp
@@ -1,4 +1,10 @@
#include "HL1606stripPWM.h"
+// Written from scratch, but inspired by
+// http://waitingforbigo.com/2010/10/02/second-preview-release-of-fastspi_led-library
+// This library can PWM an HL1606 strip with 3 or 4 bits of color per LED
+// See the example sketches for more detailed usage
+
+// (c) Adafruit Industries / Limor Fried 2010. Released under MIT license.
static uint8_t pwmincr;
View
8 HL1606stripPWM.h
@@ -1,7 +1,9 @@
+// (c) Adafruit Industries / Limor Fried 2010. Released under MIT license.
+
#include <WProgram.h>
// some spi defines
-// Duemilanove and mini w/328
+// Classic Arduinos
#if defined(__AVR_ATmega328P__) || defined(__AVR_ATmega328__)|| defined(__AVR_ATmega168__)
#define SPI_PORT PORTB
#define SPI_DDR DDRB
@@ -10,8 +12,8 @@
#define SPI_SCK 5 // Arduino pin 13.
#define DATA_PIN 11
#define CLOCK_PIN 13
-// Mega.
-#elif defined(__AVR_ATmega1280__)
+// Megas
+#elif defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__)
#define SPI_PORT PORTB
#define SPI_DDR DDRB
#define SPI_PIN PINB
Please sign in to comment.
Something went wrong with that request. Please try again.