This is an old version of the documentation. View the latest version here.
Control Surface  1.0.0
MIDI Control Surface library for Arduino
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Private Attributes | List of all members
MCU::VUDisplay Class Reference

#include <VUDisplay.hpp>

Inheritance diagram for MCU::VUDisplay:
Collaboration diagram for MCU::VUDisplay:

Public Member Functions

 VUDisplay (DisplayInterface &display, IVU &vu, PixelLocation loc, uint16_t width, uint8_t blockheight, uint8_t spacing, uint16_t color)
 
void draw () override
 Draw this DisplayElement to the display buffer. More...
 
DisplayInterfacegetDisplay ()
 Get a reference to the display that this element draws to. More...
 
const DisplayInterfacegetDisplay () const
 Get a const reference to the display that this element draws to. More...
 

Static Public Member Functions

static DoublyLinkedList< DisplayElement > & getAll ()
 Get the list of all DisplayElement instances. More...
 

Protected Member Functions

virtual void drawPeak (uint8_t peak)
 
virtual void drawBlocks (uint8_t value)
 

Protected Attributes

DisplayInterfacedisplay
 
DisplayElementnext
 
DisplayElementprevious
 

Static Protected Attributes

static DoublyLinkedList< DisplayElementelements
 

Private Member Functions

void updatePeak (uint8_t value)
 

Private Attributes

IVUvu
 
int16_t x
 
int16_t y
 
uint16_t width
 
uint8_t blockheight
 
uint8_t spacing
 
uint16_t color
 
int16_t peak = 0
 
unsigned long previousDecay = 0
 
bool decaying = false
 
unsigned long decayTime
 

Detailed Description

Examples
2.VU-Meter-OLED-USB-DAC.ino, MCU-OLED-SSD1306-x2.ino, MCU-OLED-SSD1306.ino, and VU-Meter-Bridge.ino.

Definition at line 10 of file VUDisplay.hpp.

Constructor & Destructor Documentation

◆ VUDisplay()

MCU::VUDisplay::VUDisplay ( DisplayInterface display,
IVU vu,
PixelLocation  loc,
uint16_t  width,
uint8_t  blockheight,
uint8_t  spacing,
uint16_t  color 
)
inline

Definition at line 12 of file VUDisplay.hpp.

Member Function Documentation

◆ draw()

void MCU::VUDisplay::draw ( )
inlineoverridevirtual

Draw this DisplayElement to the display buffer.

Implements DisplayElement.

Definition at line 22 of file VUDisplay.hpp.

◆ drawPeak()

virtual void MCU::VUDisplay::drawPeak ( uint8_t  peak)
inlineprotectedvirtual

Definition at line 32 of file VUDisplay.hpp.

◆ drawBlocks()

virtual void MCU::VUDisplay::drawBlocks ( uint8_t  value)
inlineprotectedvirtual

Definition at line 39 of file VUDisplay.hpp.

◆ updatePeak()

void MCU::VUDisplay::updatePeak ( uint8_t  value)
inlineprivate

Definition at line 49 of file VUDisplay.hpp.

◆ getDisplay() [1/2]

DisplayInterface& DisplayElement::getDisplay ( )
inlineinherited

Get a reference to the display that this element draws to.

Definition at line 36 of file DisplayElement.hpp.

◆ getDisplay() [2/2]

const DisplayInterface& DisplayElement::getDisplay ( ) const
inlineinherited

Get a const reference to the display that this element draws to.

Definition at line 38 of file DisplayElement.hpp.

◆ getAll()

static DoublyLinkedList<DisplayElement>& DisplayElement::getAll ( )
inlinestaticinherited

Get the list of all DisplayElement instances.

Definition at line 41 of file DisplayElement.hpp.

Member Data Documentation

◆ vu

IVU& MCU::VUDisplay::vu
private

Definition at line 67 of file VUDisplay.hpp.

◆ x

int16_t MCU::VUDisplay::x
private

Definition at line 69 of file VUDisplay.hpp.

◆ y

int16_t MCU::VUDisplay::y
private

Definition at line 70 of file VUDisplay.hpp.

◆ width

uint16_t MCU::VUDisplay::width
private

Definition at line 71 of file VUDisplay.hpp.

◆ blockheight

uint8_t MCU::VUDisplay::blockheight
private

Definition at line 72 of file VUDisplay.hpp.

◆ spacing

uint8_t MCU::VUDisplay::spacing
private

Definition at line 73 of file VUDisplay.hpp.

◆ color

uint16_t MCU::VUDisplay::color
private

Definition at line 74 of file VUDisplay.hpp.

◆ peak

int16_t MCU::VUDisplay::peak = 0
private

Definition at line 76 of file VUDisplay.hpp.

◆ previousDecay

unsigned long MCU::VUDisplay::previousDecay = 0
private

Definition at line 77 of file VUDisplay.hpp.

◆ decaying

bool MCU::VUDisplay::decaying = false
private

Definition at line 78 of file VUDisplay.hpp.

◆ decayTime

unsigned long MCU::VUDisplay::decayTime
private

Definition at line 80 of file VUDisplay.hpp.

◆ display

DisplayInterface& DisplayElement::display
protectedinherited

Definition at line 44 of file DisplayElement.hpp.

◆ elements

DoublyLinkedList< DisplayElement > DisplayElement::elements
staticprotectedinherited

Definition at line 46 of file DisplayElement.hpp.

◆ next

DisplayElement * DoublyLinkable< DisplayElement >::next
protectedinherited

Definition at line 301 of file LinkedList.hpp.

◆ previous

DisplayElement * DoublyLinkable< DisplayElement >::previous
protectedinherited

Definition at line 302 of file LinkedList.hpp.


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