-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLED_Display_Wrapper.h
65 lines (48 loc) · 1.97 KB
/
LED_Display_Wrapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/******************************************************************************************************
This library is for controlling multiple 14-Segment displays.
Designed specifically to work with the Tickertape Retro Display
http://tickertape.cc/
These displays use I2C to communicate, 2 pins are required to
interface.
This library is a wrapper of the AdaFriut LED Backbackpack and GFX libraries:
https://github.com/adafruit/Adafruit-GFX-Library
https://github.com/adafruit/Adafruit_LED_Backpack
The Adafruit Backpack library dosnt support the '.' full stop, and I didnt like some of their font
choices for the number digits, so I have created a modified version:
https://github.com/darrendignam/Adafruit_LED_Backpack
(c) Darren Dignam 2019
MIT license, all text above must be included in any redistribution
*******************************************************************************************************/
#ifndef LED_Display_Wrapper_h
#define LED_Display_Wrapper_h
#include "Arduino.h"
//string was causing compile errors on non ESP boards...
// #include <string>
#include <string.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include "Adafruit_LEDBackpack.h"
class LED_Display_Wrapper
{
public:
LED_Display_Wrapper();
void setBrightness(uint8_t b);
void writeDigitRaw(uint8_t n, uint16_t bitmask);
void writeDisplay();
void clear();
void ScrollText(String _message);
void PushChar(char c);
void FillTextBuffer(String _message);
void BLINK();
void SPINNER_OUTER(uint8_t num_spins);
void SPINNER_OUTER2(uint8_t num_spins);
void SPINNER_INNER(uint8_t num_spins);
void SPINNER_INNER_NEGATIVE(uint8_t num_spins);
void SPINNER_INNER_FADE(uint8_t num_spins);
void SPINNER_INNER_OUTER(uint8_t num_spins);
char displaybuffer[6];
Adafruit_AlphaNum4 alpha4;
uint8_t brightness;
private:
};
#endif