-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdigitsune.h
64 lines (58 loc) · 1.83 KB
/
digitsune.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
#include <Adafruit_GFX.h>
#include <Adafruit_NeoMatrix.h>
#include <Adafruit_NeoPixel.h>
#include <Adafruit_CircuitPlayground.h>
#include "bitmapData.h"
#include "sfx.h"
#define DISP_PIN 10
#define DISP_BRIGHTNESS 4 // Max is 255, but would likely kill the battery
#define DISP_WIDTH 8
#define DISP_HEIGHT 168
#define DISP_DEBUG false
#define TEAL 0b0000011111110000
#define TEAL32 0b00000000000000001111111110000000
#define PINK 0b1111100000010000
#define PINK32 0b00000000111111110000000010000000
#define PURPLE 0b1111100000011111
#define PURPLE32 0b00000000010000000000000011111100
#define RED 0b1111100000000000
#define RED32 0b00000000111111110000000000000000
#define GREEN 0b0000011111100000
#define GREEN32 0b00000000000000001111111100000000
#define BLUE 0b0000000000011111
#define BLUE32 0b00000000000000000000000011111111
#define WHITE 0b1111111111111111
#define WHITE32 0b00000000111111111111111111111111
#define RMT_MAIN 0x40BF708F
#define RMT_VOICE 0x40BFD02F
#define RMT_EMOTEHAPPY 0x40BFE817
#define RMT_EMOTELAUGH 0x40BF827D
#define RMT_EMOTEERROR 0x40BF02FD
#define RMT_EMOTEFLUSHED 0x40BF42BD
#define RMT_EMOTEPENSIVE 0x40BF22DD
#define RMT_EMOTEYES 0x40BFD22D
#define RMT_EMOTENO 0x40BFF20D
#define RMT_INFO 0x40BFCA35
#define RMT_COLTEAL 0x40BF20DF
#define RMT_COLPINK 0x40BF40BF
#define RMT_COLPURPLE 0x40BFC03F
#define RMT_COLRED 0x40BFE01F
#define RMT_COLGREEN 0x40BF609F
#define RMT_COLBLUE 0x40BFA05F
#define RMT_COLWHITE 0x40BF10EF
#define RMT_DEBUG false
enum DISP_MODE {
DISP_MODE_MAIN,
DISP_MODE_VOICE,
DISP_MODE_EMOTEHAPPY,
DISP_MODE_EMOTELAUGH,
DISP_MODE_EMOTEERROR,
DISP_MODE_EMOTEFLUSHED,
DISP_MODE_EMOTEPENSIVE,
DISP_MODE_EMOTEYES,
DISP_MODE_EMOTENO,
DISP_MODE_INFO
} mode = DISP_MODE_MAIN;
int currentBitmap = 0;
void display_bitmap(uint8_t bmp_num);
void display_bitmap_delay(uint8_t bmp_num, uint16_t time);