Seeed Grove ++  v0.0.1-2386
Linux C++ Library For Seeed Grove Devices
sg_LED_patterns.hpp File Reference
#include "sg_BeagleBone_LED.hpp"
#include <vector>
#include <map>
Include dependency graph for sg_LED_patterns.hpp:
This graph shows which files directly or indirectly include this file:

Namespaces

 SG
 
 SG::BeagleBone
 

Typedefs

typedef std::map< SG::BeagleBone::LED, bool > SG::BeagleBone::PatternStep
 Every blink pattern is a vector of steps, where each step is map of LEDs to turn on and off. More...
 
typedef std::vector< SG::BeagleBone::PatternStepSG::BeagleBone::BlinkPattern
 Every blink pattern is a vector of steps, where each step is map of LEDs to turn on and off. More...
 

Enumerations

enum  SG::BeagleBone::LEDPattern {
  SG::BeagleBone::LEDPattern::invalid = 0,
  SG::BeagleBone::LEDPattern::min = 1,
  SG::BeagleBone::LEDPattern::none = min,
  SG::BeagleBone::LEDPattern::all,
  SG::BeagleBone::LEDPattern::blink,
  SG::BeagleBone::LEDPattern::blinkOffset,
  SG::BeagleBone::LEDPattern::blinkSplit,
  SG::BeagleBone::LEDPattern::cylon,
  SG::BeagleBone::LEDPattern::kitt,
  SG::BeagleBone::LEDPattern::mergeLeft,
  SG::BeagleBone::LEDPattern::mergeRight,
  SG::BeagleBone::LEDPattern::mergeBoth,
  SG::BeagleBone::LEDPattern::inchwormLeft,
  SG::BeagleBone::LEDPattern::inchwormRight,
  SG::BeagleBone::LEDPattern::inchwormBoth,
  SG::BeagleBone::LEDPattern::insideOut,
  SG::BeagleBone::LEDPattern::max
}
 Several "built-in" (to this library) blink patterns that can easily be used with SG::BeagleBone::LEDControl. More...
 

Functions

BlinkPattern SG::BeagleBone::LED_invert_pattern (const BlinkPattern &pattern)
 Invert the pattern. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_none (void)
 Turn all the lights off. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_all (void)
 Turn all lights on. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_blink (void)
 Blink all lights in unison. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_blinkOffset (void)
 Blink even and odd lights. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_blinkSplit (void)
 Blink left and right lights. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_cylon (void)
 Multi-light sweep similar to BSG Cylons. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_kitt (void)
 Single light sweep similar to KITT ("Knight Rider") from the 1980s. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_mergeLeft (void)
 Lights moving from right to left. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_mergeRight (void)
 Lights moving from left to right. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_mergeBoth (void)
 Mix of merge left and merge right. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_inchwormLeft (void)
 Lights moving from right to left. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_inchwormRight (void)
 Lights moving from left to right. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_inchwormBoth (void)
 Mix of merge left and merge right. More...
 
BlinkPattern SG::BeagleBone::LED_pattern_insideOut (void)
 Blink inside lights, then outside lights. More...
 
BlinkPattern SG::BeagleBone::LED_get_pattern (const LEDPattern pattern)
 Return the corresponding blink pattern that corresponds to the given enum value. More...