SBK_BarDrive Library 2.2.1
LED bar meter control and queued animations for Arduino
Loading...
Searching...
No Matches
SBK_BarDrive.h File Reference

High-level controller for animated bar meters and LED displays compatible with external SBK_MAX72xx or SBK_HT16K33 drivers. More...

#include <Arduino.h>
#include "SBK_BarMeterAnimations.h"

Go to the source code of this file.

Data Structures

class  SBK_BarMeter< DriverT >
 Template class for controlling segment-based LED bar meters using row/column mappings. More...
class  SBK_BarDrive< DriverT >
 Unified interface combining SBK_BarMeter logic with optional built-in animation support. More...

Enumerations

enum class  MatrixPreset {
  NONE , SBK_BarMeter_SK28 , SBK_BarMeter_SA28 , BL28_3005SK ,
  BL28_3005SA
}
 Enables built-in animation support for SBK_BarDrive. More...
enum class  BarDirection : uint8_t { FORWARD = 0 , REVERSE = 1 }
 Direction of bar fill or animation progression. More...

Detailed Description

High-level controller for animated bar meters and LED displays compatible with external SBK_MAX72xx or SBK_HT16K33 drivers.

Author
Samuel Barabé (Smart Builds & Kits)

Part of the SBK BarDrive Arduino Library https://github.com/smartbuilds/SBK_BarDrive

Version
2.2.1
License MIT

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

Definition in file SBK_BarDrive.h.

Enumeration Type Documentation

◆ BarDirection

enum class BarDirection : uint8_t
strong

Direction of bar fill or animation progression.

Used to control the rendering orientation of bar animations and pixel updates.

  • FORWARD: From first segment to last.
  • REVERSE: From last segment to first.
Enumerator
FORWARD 

From first segment to last.

REVERSE 

From last segment to first.

Definition at line 102 of file SBK_BarDrive.h.

◆ MatrixPreset

enum class MatrixPreset
strong

Enables built-in animation support for SBK_BarDrive.

Define this macro before including SBK_BarDrive.h to activate the SBK_BarMeterAnimations system. Without this definition, animation methods like .animations() will not be available, reducing flash and RAM usage for minimal builds.

Preset types for common matrix-style bar meter hardware configurations.

Defines built-in mapping presets for SBK matrix-type bar meters. These presets simplify the initialization of the SBK_BarMeter class by providing predefined segment-to-row/column mappings, avoiding the need for manual setup.

Enumerator
NONE 

No preset selected; manual segment mapping is required.

SBK_BarMeter_SK28 

Alias for SBK BarMeter SK28, uses the BL28_3005SK preset internally.

SBK_BarMeter_SA28 

Alias for SBK BarMeter SA28, uses the BL28_3005SA preset internally.

BL28_3005SK 

Native mapping for BL28-3005SK (4 anodes × 7 cathodes), common cathode.

BL28_3005SA 

Native mapping for BL28-3005SA (7 anodes × 4 cathodes), common anode.

Definition at line 85 of file SBK_BarDrive.h.