Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
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).
 
void displayRange (uint16_t startOn, uint16_t startOff) const
 Turn on a range of the LEDs.
 
void set (uint16_t index) const
 Turn on the given LED.
 
void clear (uint16_t index) const
 Turn off the given LED.
 
void clear () const
 Turn off all LEDs.
 
void displayDot (uint16_t led) const
 Turn on a single LED, and turn off all others.
 

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 31 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 45 of file LEDs.hpp.

◆ set()

void set ( uint16_t index) const
inlineinherited

Turn on the given LED.

Definition at line 55 of file LEDs.hpp.

◆ clear() [1/2]

void clear ( uint16_t index) const
inlineinherited

Turn off the given LED.

Definition at line 61 of file LEDs.hpp.

◆ clear() [2/2]

void clear ( ) const
inlineinherited

Turn off all LEDs.

Definition at line 77 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 72 of file LEDs.hpp.

Member Data Documentation

◆ ledPins

const PinList<N> ledPins
privateinherited

Definition at line 83 of file LEDs.hpp.


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