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 TypeMethodDescriptionvoid
begin()
void
clear()
long
Color
(int r, int g, int b) static long
ColorHSV
(int hue, int sat, int val) static long
gamma32
(long x) int
void
setBrightness
(int n) void
setPixelColor
(int n, int r, int g, int b) void
setPixelColor
(int n, long rgb) void
show()
-
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)
-