Control Surface  1.1.1
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
VUDisplay Class Reference

#include <Display/MCU/VUDisplay.hpp>

Inheritance diagram for VUDisplay:
Collaboration diagram for 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-MEGA.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()

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 draw ( )
inlineoverridevirtual

Draw this DisplayElement to the display buffer.

Implements DisplayElement.

Definition at line 22 of file VUDisplay.hpp.

◆ drawPeak()

virtual void drawPeak ( uint8_t  peak)
inlineprotectedvirtual

Definition at line 32 of file VUDisplay.hpp.

◆ drawBlocks()

virtual void drawBlocks ( uint8_t  value)
inlineprotectedvirtual

Definition at line 39 of file VUDisplay.hpp.

◆ updatePeak()

void updatePeak ( uint8_t  value)
inlineprivate

Definition at line 49 of file VUDisplay.hpp.

◆ getDisplay() [1/2]

DisplayInterface& 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& 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>& getAll ( )
inlinestaticinherited

Get the list of all DisplayElement instances.

Definition at line 41 of file DisplayElement.hpp.

Member Data Documentation

◆ vu

IVU& vu
private

Definition at line 67 of file VUDisplay.hpp.

◆ x

int16_t x
private

Definition at line 69 of file VUDisplay.hpp.

◆ y

int16_t y
private

Definition at line 70 of file VUDisplay.hpp.

◆ width

uint16_t width
private

Definition at line 71 of file VUDisplay.hpp.

◆ blockheight

uint8_t blockheight
private

Definition at line 72 of file VUDisplay.hpp.

◆ spacing

uint8_t spacing
private

Definition at line 73 of file VUDisplay.hpp.

◆ color

uint16_t color
private

Definition at line 74 of file VUDisplay.hpp.

◆ peak

int16_t peak = 0
private

Definition at line 76 of file VUDisplay.hpp.

◆ previousDecay

unsigned long previousDecay = 0
private

Definition at line 77 of file VUDisplay.hpp.

◆ decaying

bool decaying = false
private

Definition at line 78 of file VUDisplay.hpp.

◆ decayTime

unsigned long decayTime
private

Definition at line 80 of file VUDisplay.hpp.

◆ display

DisplayInterface& display
protectedinherited

Definition at line 44 of file DisplayElement.hpp.

◆ elements

DoublyLinkedList< DisplayElement > elements
staticprotectedinherited

Definition at line 46 of file DisplayElement.hpp.

◆ next

DisplayElement * next
protectedinherited

Definition at line 305 of file LinkedList.hpp.

◆ previous

DisplayElement * previous
protectedinherited

Definition at line 306 of file LinkedList.hpp.


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