Package lib.custom

Class CustomNeoPixels

java.lang.Object
lib.custom.CustomCAN
lib.custom.CustomNeoPixels

public abstract class CustomNeoPixels extends CustomCAN
Class for interfacing with a Teensy running TeensyNeoPixelCAN code.
  • 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

      public CustomNeoPixels(String name, int id)
      Constructor ID should be between 0x600 and 0x700.
      Parameters:
      name -
      id -
  • Method Details

    • setMode

      protected final CustomNeoPixels setMode(int mode)
    • setColor

      public CustomNeoPixels setColor(int R, int G, int B)
      Sets the color of the pattern. Values are 0-255.
      Parameters:
      R -
      G -
      B -
    • setValue

      public CustomNeoPixels setValue(int value)
      Sets the progress of the pattern. Values are 0 to 32768.
      Parameters:
      value -
    • update

      public void update()
      Writes LED pattern to Teensy.