Class Ring

Class Documentation

class BlackBox::Ring

Class for controling the LED Ring.

Public Functions

Ring(int count = ledCount)

Construct a new Ring object.

Parameters

count – Count of Smart LEDs

void show()

Draw buffered frame.

void wait()

Wait for drawing to finish.

Note

Is called from show() anyway

void drawArc(Rgb colour, Index beginnig, Index ending, ArcType arcType = ArcType::ShorterDistance)

Draw arc onto frame.

Parameters
  • colour

  • beginnig

  • ending

  • arcType

void drawCircle(Rgb colour)

Draw full circle onto frame.

Parameters

colour

void draw(std::unique_ptr<Rgb[]> buffer)

Draw whole frame.

Parameters

buffer

void clear()

Clear active frame.

Note

Just draws black circle

const Rgb &operator[](const Index&) const
Rgb &operator[](const Index&)
void enableDarkMode()

Enable dark mode.

void disableDarkMode()

Disable dark mode.

void setDarkModeValue(int value)

Set dark mode value.

Parameters

value

void rotate(Index beginning)

Set new origin for drawing.

Parameters

beginning