Package lib.custom
Class CustomNeoPixels
java.lang.Object
lib.custom.CustomCAN
lib.custom.CustomNeoPixels
Class for interfacing with a Teensy running TeensyNeoPixelCAN code.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byteprotected byteprotected intprotected byteprotected int -
Constructor Summary
ConstructorsConstructorDescriptionCustomNeoPixels(String name, int id) Constructor ID should be between 0x600 and 0x700. -
Method Summary
Modifier and TypeMethodDescriptionsetColor(int R, int G, int B) Sets the color of the pattern.protected final CustomNeoPixelssetMode(int mode) setValue(int value) Sets the progress of the pattern.voidupdate()Writes LED pattern to Teensy.Methods inherited from class lib.custom.CustomCAN
getName, read, readBuffer, readSafely, write, writeSafely
-
Field Details
-
R
protected byte R -
G
protected byte G -
B
protected byte B -
mode
protected int mode -
value
protected int value
-
-
Constructor Details
-
CustomNeoPixels
Constructor ID should be between 0x600 and 0x700.- Parameters:
name-id-
-
-
Method Details
-
setMode
-
setColor
Sets the color of the pattern. Values are 0-255.- Parameters:
R-G-B-
-
setValue
Sets the progress of the pattern. Values are 0 to 32768.- Parameters:
value-
-
update
public void update()Writes LED pattern to Teensy.
-