-
Notifications
You must be signed in to change notification settings - Fork 2
/
LedStripPixelsDisplay.h
32 lines (31 loc) · 1.38 KB
/
LedStripPixelsDisplay.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
#ifndef LedStripPixelsDisplay_h
#define LedStripPixelsDisplay_h
#include "neopixel/neopixel.h"
class LedStripPixelsDisplay
{
public:
LedStripPixelsDisplay(Adafruit_NeoPixel* pixels, int ledByLines);
void scroll_message(String msg, uint32_t color, int (*f)(int, uint32_t color));
void tap_message(String msg, uint32_t color, int (*f)(int, uint32_t color));
void message(String msg, uint32_t color);
void clear();
void clear_color(uint32_t color);
void digits(int pos, uint32_t color, byte l0, byte l1, byte l2, byte l3, byte l4, byte l5, byte l6, int from, int to);
void line(int pos, uint32_t color, byte line, byte content, int from, int to);
void onebit(int pos, uint32_t color, byte line, byte content, byte col, int from, int to);
void onebit(uint32_t color, int col, byte line, bool enabled);
void setChar(int pos, uint32_t color, char ch);
void setChar(int pos, uint32_t color, char ch, int from, int to);
void drawPath(byte p[], uint32_t color);
void drawPath(byte p[], uint32_t color, int from, int to);
void drawPath(byte p[], uint32_t color, int from, int to, int w, int offset);
int drawBits(byte p[], uint32_t color, int x, int y, int start=0);
void drawImage(byte p[]);
void drawImage(byte p[], size_t len, int x, int y);
private:
int _ledByLines;
int _totalpixels;
Adafruit_NeoPixel* _pixels;
uint32_t black;
};
#endif