Treehopper C++ API
Dm632.h
Go to the documentation of this file.
1 #pragma once
2 
6 #include <bitset>
7 
8 namespace Treehopper {
9  namespace Libraries {
10  namespace Displays {
11 
13 
16  public:
23  Dm632(Spi &spi, SpiChipSelectPin *lat, double speed = 6);
24 
29  Dm632(ChainableShiftRegisterOutput &upstreamDevice);
30 
31  virtual void flush(bool force = false);
32 
33  virtual void updateFromCurrentValue();
34 
35  private:
36  virtual void setGlobalBrightness(double _brightness);
37 
38  virtual void ledStateChanged(Led led);
39 
40  virtual void ledBrightnessChanged(Led led);
41 
42  void update(Led &led);
43  };
44  }
45  }
46 }
Represents a single LED that may or may not have _brightness control
Definition: Led.h:22
Library for the SiTI DM632, DM633, and DM634 16-channel, 16-bit PWM-capable shift-register-type LED d...
Definition: Dm632.h:15
Base class that all LED drivers inherit from.
Definition: LedDriver.h:18
An SPI port.
Definition: Spi.h:15
Any shift-register-like device that can be daisy-chained onto other shift registers.
Definition: ChainableShiftRegisterOutput.h:22
Definition: ChainableShiftRegisterOutput.h:12
#define LIBRARIES_API
Definition: Treehopper.Libraries.h:17
Definition: AdcPin.h:3
Definition: SpiChipSelectPin.h:7