Package virtualbreadboard.arduino
Class Adafruit_NeoPixel
java.lang.Object
virtualbreadboard.arduino.Adafruit_NeoPixel
-
Constructor Summary
ConstructorsConstructorDescriptionNeoPixel binds directly to the Pin and Type of NeoPixel devices attached to the target. -
Method Summary
Modifier and TypeMethodDescriptionvoidbegin()voidclear()longColor(int r, int g, int b) static longColorHSV(int hue, int sat, int val) static longgamma32(long x) intvoidsetBrightness(int n) voidsetPixelColor(int n, int r, int g, int b) voidsetPixelColor(int n, long rgb) voidshow()
-
Constructor Details
-
Adafruit_NeoPixel
public Adafruit_NeoPixel()NeoPixel binds directly to the Pin and Type of NeoPixel devices attached to the target.
-
-
Method Details
-
begin
public void begin() -
Color
public long Color(int r, int g, int b) -
show
public void show() -
setPixelColor
public void setPixelColor(int n, int r, int g, int b) -
setPixelColor
public void setPixelColor(int n, long rgb) -
numPixels
public int numPixels() -
setBrightness
public void setBrightness(int n) -
clear
public void clear() -
ColorHSV
public static long ColorHSV(int hue, int sat, int val) -
gamma32
public static long gamma32(long x)
-