Control Surface master
MIDI Control Surface library for Arduino
Public Member Functions | Private Attributes | List of all members
VPotRingLEDsDriver Class Reference

#include <MIDI_Inputs/LEDs/MCU/VPotRingLEDs.hpp>

Detailed Description

Definition at line 10 of file VPotRingLEDs.hpp.

+ Inheritance diagram for VPotRingLEDsDriver:
+ Collaboration diagram for VPotRingLEDsDriver:

Public Member Functions

 VPotRingLEDsDriver (const AH::LEDs< 11 > &leds)
 
void displayVPot (VPotState v)
 
void begin () const
 Initialize (set LED pins as outputs). More...
 
void displayRange (uint16_t startOn, uint16_t startOff) const
 Turn on a range of the LEDs. More...
 
void set (uint16_t index) const
 Turn on the given LED. More...
 
void clear (uint16_t index) const
 Turn off the given LED. More...
 
void clear () const
 Turn off all LEDs. More...
 
void displayDot (uint16_t led) const
 Turn on a single LED, and turn off all others. More...
 

Private Attributes

const PinList< N > ledPins
 

Constructor & Destructor Documentation

◆ VPotRingLEDsDriver()

VPotRingLEDsDriver ( const AH::LEDs< 11 > &  leds)
inline

Definition at line 12 of file VPotRingLEDs.hpp.

Member Function Documentation

◆ displayVPot()

void displayVPot ( VPotState  v)
inline

Definition at line 14 of file VPotRingLEDs.hpp.

◆ begin()

void begin ( ) const
inlineinherited

Initialize (set LED pins as outputs).

Definition at line 34 of file LEDs.hpp.

◆ displayRange()

void displayRange ( uint16_t  startOn,
uint16_t  startOff 
) const
inlineinherited

Turn on a range of the LEDs.

Parameters
startOnThe first LED of the range to turn on (the LEDs before this one are turned off).
startOffThe first LED after the range to turn off.

Definition at line 48 of file LEDs.hpp.

◆ set()

void set ( uint16_t  index) const
inlineinherited

Turn on the given LED.

Definition at line 58 of file LEDs.hpp.

◆ clear() [1/2]

void clear ( uint16_t  index) const
inlineinherited

Turn off the given LED.

Definition at line 64 of file LEDs.hpp.

◆ clear() [2/2]

void clear ( ) const
inlineinherited

Turn off all LEDs.

Definition at line 80 of file LEDs.hpp.

◆ displayDot()

void displayDot ( uint16_t  led) const
inlineinherited

Turn on a single LED, and turn off all others.

Parameters
ledThe LED to turn on.

Definition at line 75 of file LEDs.hpp.

Member Data Documentation

◆ ledPins

const PinList<N> ledPins
privateinherited

Definition at line 86 of file LEDs.hpp.


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