Skip to content

Commit

Permalink
rename everything
Browse files Browse the repository at this point in the history
  • Loading branch information
Evelyn Masso committed Apr 10, 2017
1 parent bacdfe7 commit d8a0e96
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions EasyNeoPixels.h
@@ -1,6 +1,6 @@

/*
EasyNeopixels.h - Library for making neopixels more approachable.
EasyNeoPixels.h - Library for making neopixels more approachable.
Created by Evelyn Masso, April 9, 2017.
*/

Expand All @@ -9,18 +9,18 @@
#include "Arduino.h"
#include <Adafruit_NeoPixel.h>

Adafruit_NeoPixel neopixels;
Adafruit_NeoPixel easyNeoPixels;

void setupNeopixels(int pin, int num) {
neopixels = Adafruit_NeoPixel(num, pin, NEO_GRB + NEO_KHZ800);
void setupEasyNeoPixels(int pin, int num) {
easyNeoPixels = Adafruit_NeoPixel(num, pin, NEO_GRB + NEO_KHZ800);
}

void writeNeopixel(int num, int val) {
neopixels.setPixelColor(num, neopixels.Color(val*255,val*255,val*255));
neopixels.show();
void writeEasyNeoPixel(int num, int val) {
easyNeoPixels.setPixelColor(num, neopixels.Color(val*255,val*255,val*255));
easyNeoPixels.show();
}

void writeNeopixel(int num, int r, int g, int b) {
neopixels.setPixelColor(num, neopixels.Color(r,g,b));
neopixels.show();
void writeEasyNeoPixel(int num, int r, int g, int b) {
easyNeoPixels.setPixelColor(num, neopixels.Color(r,g,b));
easyNeoPixels.show();
}

0 comments on commit d8a0e96

Please sign in to comment.