RSeries astromech firmware
HoloOLED< DATA_PIN, RGB_ORDER, NUM_LEDS > Class Template Reference

#include <dome/HoloLights.h>

+ Inheritance diagram for HoloOLED< DATA_PIN, RGB_ORDER, NUM_LEDS >:
+ Collaboration diagram for HoloOLED< DATA_PIN, RGB_ORDER, NUM_LEDS >:

Public Member Functions

 HoloOLED (HardwareSerial &oledSerialPort, const int id=0, const byte resetPin=46)
 Constructor. More...
 
virtual void setup () override
 Initalizes the OLED display and SD card. More...
 
virtual void handleCommand (const char *cmd) override
 See HoloLights::handleCommand() More...
 
bool isPlaying ()
 
virtual void animate ()
 Runs through one frame of animation for this holoprojector instance. More...
 
void reset ()
 
void playMovie (byte movieIndex)
 
void stopMovie ()
 
- Public Member Functions inherited from HoloLights< 45, GRB, 12 >
 HoloLights (const int id=0)
 Constructor. More...
 
void begin ()
 
void show ()
 
void setBrightness (uint8_t b)
 
uint8_t getBrightness ()
 
uint16_t numPixels ()
 
void setPixelColor (uint16_t n, uint32_t c)
 
virtual void jawaCommand (char cmd, int arg, int value) override
 Subclasses should override this method to handle commands specifying a value. More...
 
virtual void selectSequence (int sequence, int durationSec)
 Specify the sequence to animate. More...
 
void assignServos (ServoDispatch *dispatcher, byte hServo, byte vServo)
 Assign ServoDispatcher and servos for horizontal and vertical movement. More...
 
int getID ()
 
void brighter ()
 Increase the brightness of the holoprojector. More...
 
void dimmer ()
 Decrease the brightness of the holoprojector. More...
 
void off ()
 Turn of all LEDs. More...
 
void setColor (int c)
 Set projector to a solid color. More...
 
void resetLEDTwitch ()
 
void resetHPTwitch ()
 
void setHoloPosition (float hpos, float vpos, int speed=0)
 
void moveHP (byte pos, int speed=0)
 Move holoprojector to the specified position. More...
 
void twitchHP (byte randtwitch)
 
void wagHP (byte type)
 
void setLEDTwitchInterval (unsigned minSeconds, unsigned maxSeconds)
 
void setLEDTwitchRunInterval (unsigned minSeconds, unsigned maxSeconds)
 
void setHPTwitchInterval (unsigned minSeconds, unsigned maxSeconds)
 
void dirty ()
 
- Public Member Functions inherited from HoloLEDPCB< DATA_PIN, RGB_ORDER, NUM_LEDS >
 HoloLEDPCB ()
 

Additional Inherited Members

- Public Types inherited from HoloLights< 45, GRB, 12 >
enum  HoloID
 
enum  HoloPosition
 
enum  HoloColors
 

Constructor & Destructor Documentation

◆ HoloOLED()

template<uint8_t DATA_PIN = 45, uint32_t RGB_ORDER = GRB, uint16_t NUM_LEDS = 12>
HoloOLED< DATA_PIN, RGB_ORDER, NUM_LEDS >::HoloOLED ( HardwareSerial &  oledSerialPort,
const int  id = 0,
const byte  resetPin = 46 
)
inline

Constructor.

Member Function Documentation

◆ animate()

template<uint8_t DATA_PIN = 45, uint32_t RGB_ORDER = GRB, uint16_t NUM_LEDS = 12>
virtual void HoloOLED< DATA_PIN, RGB_ORDER, NUM_LEDS >::animate ( )
inlinevirtual

Runs through one frame of animation for this holoprojector instance.

Reimplemented from HoloLights< 45, GRB, 12 >.

◆ handleCommand()

template<uint8_t DATA_PIN = 45, uint32_t RGB_ORDER = GRB, uint16_t NUM_LEDS = 12>
virtual void HoloOLED< DATA_PIN, RGB_ORDER, NUM_LEDS >::handleCommand ( const char *  cmd)
inlineoverridevirtual

◆ isPlaying()

template<uint8_t DATA_PIN = 45, uint32_t RGB_ORDER = GRB, uint16_t NUM_LEDS = 12>
bool HoloOLED< DATA_PIN, RGB_ORDER, NUM_LEDS >::isPlaying ( )
inline

◆ playMovie()

template<uint8_t DATA_PIN = 45, uint32_t RGB_ORDER = GRB, uint16_t NUM_LEDS = 12>
void HoloOLED< DATA_PIN, RGB_ORDER, NUM_LEDS >::playMovie ( byte  movieIndex)
inline

◆ reset()

template<uint8_t DATA_PIN = 45, uint32_t RGB_ORDER = GRB, uint16_t NUM_LEDS = 12>
void HoloOLED< DATA_PIN, RGB_ORDER, NUM_LEDS >::reset ( )
inline

◆ setup()

template<uint8_t DATA_PIN = 45, uint32_t RGB_ORDER = GRB, uint16_t NUM_LEDS = 12>
virtual void HoloOLED< DATA_PIN, RGB_ORDER, NUM_LEDS >::setup ( )
inlineoverridevirtual

Initalizes the OLED display and SD card.

Reimplemented from HoloLights< 45, GRB, 12 >.

◆ stopMovie()

template<uint8_t DATA_PIN = 45, uint32_t RGB_ORDER = GRB, uint16_t NUM_LEDS = 12>
void HoloOLED< DATA_PIN, RGB_ORDER, NUM_LEDS >::stopMovie ( )
inline

The documentation for this class was generated from the following file: