Adafruit LED Backpack Library
Public Member Functions | List of all members
Adafruit_24bargraph Class Reference

Class for 24-element bargraph displays. More...

#include <Adafruit_LEDBackpack.h>

Inheritance diagram for Adafruit_24bargraph:
Adafruit_LEDBackpack

Public Member Functions

 Adafruit_24bargraph (void)
 Constructor for 24-element bargraph displays.
 
void setBar (uint8_t bar, uint8_t color)
 Set color a single bar (dot). More...
 
- Public Member Functions inherited from Adafruit_LEDBackpack
 Adafruit_LEDBackpack (void)
 Constructor for HT16K33 devices.
 
bool begin (uint8_t _addr=0x70, TwoWire *theWire=&Wire)
 Start I2C and initialize display state (blink off, full brightness). More...
 
void setDisplayState (bool state)
 Turn display on or off. More...
 
void setBrightness (uint8_t b)
 Set display brightness. More...
 
void blinkRate (uint8_t b)
 Set display blink rate. More...
 
void writeDisplay (void)
 Issue buffered data in RAM to display.
 
void clear (void)
 Clear display.
 

Additional Inherited Members

- Public Attributes inherited from Adafruit_LEDBackpack
uint16_t displaybuffer [8]
 Raw display data.
 
- Protected Attributes inherited from Adafruit_LEDBackpack
Adafruit_I2CDevice * i2c_dev = NULL
 Pointer to I2C bus interface.
 

Detailed Description

Class for 24-element bargraph displays.

Member Function Documentation

◆ setBar()

void Adafruit_24bargraph::setBar ( uint8_t  bar,
uint8_t  color 
)

Set color a single bar (dot).

Parameters
barBar index (0 to 23).
colorBar color: LED_OFF, LED_GREEN, LED_YELLOW or LED_RED.

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