pixled-lib
1.0
|
#include <mapping.h>
Public Member Functions | |
LedStrip (index_t length) | |
index_t | getLength () const |
Public Member Functions inherited from pixled::mapping::TurtleMapping | |
point | position () const |
angle | orientation () const |
index_t | ledIndex () const |
void | forward (coordinate distance, index_t num_led=0) |
void | turnLeft (angle angle) |
void | turnRight (angle angle) |
void | jump (point p) |
Public Member Functions inherited from pixled::Mapping | |
const std::vector< led > & | leds () const |
void | push (const led &led) |
box | boundingBox () const |
A simple mapping representing a 1D led strip.
pixled::mapping::LedStrip::LedStrip | ( | index_t | length | ) |
LedStrip constructor.
length | number of leds |
|
inline |
Returns the number of leds in the strip.