pixled-lib  1.0
Public Member Functions | List of all members
pixled::mapping::LedStrip Class Reference

#include <mapping.h>

Inheritance diagram for pixled::mapping::LedStrip:
Inheritance graph
[legend]
Collaboration diagram for pixled::mapping::LedStrip:
Collaboration graph
[legend]

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
 

Detailed Description

A simple mapping representing a 1D led strip.

Constructor & Destructor Documentation

◆ LedStrip()

pixled::mapping::LedStrip::LedStrip ( index_t  length)

LedStrip constructor.

Parameters
lengthnumber of leds

Member Function Documentation

◆ getLength()

index_t pixled::mapping::LedStrip::getLength ( ) const
inline

Returns the number of leds in the strip.

Returns
number of leds

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