Finalisation gestion d'icones dans l'écran de veille.
Correction fonctions de gestion des icones. Ajout et modification des bitmaps d'icones. Ajout fonction de changement d'icone en cours de déroulement.
This commit is contained in:
@@ -85,31 +85,26 @@ void playPop(){ anyrtttl::blocking::play(PIEZO, _pop_);}
|
||||
void playClk(){ anyrtttl::blocking::play(PIEZO, _clk_);}
|
||||
|
||||
// Snooze screen saver
|
||||
#define SNOOZE_HEIGHT 16
|
||||
#define SNOOZE_WIDTH 16
|
||||
#define XPOS 0 // Indexes into the 'icons' array in function below
|
||||
#define YPOS 1
|
||||
#define DELTAY 2
|
||||
#define _DISPLAYWIDTH 128
|
||||
#define _DISPLAYHEIGHT 32
|
||||
#define FLOCONS 4 // snowflakes in animation
|
||||
#define ICON_HEIGHT 16
|
||||
#define ICON_WIDTH 16
|
||||
|
||||
const unsigned char flake_bmp [] PROGMEM = {
|
||||
0x01, 0x80, 0xc3, 0xc3, 0xe3, 0xc7, 0xfb, 0xdf, 0x7f, 0xfe, 0x3f, 0xfc, 0x1f, 0xf8, 0x0f, 0xf0,
|
||||
0x0f, 0xf0, 0x1f, 0xf8, 0x3f, 0xfc, 0x7f, 0xfe, 0xfb, 0xdf, 0xe3, 0xc7, 0xc3, 0xc3, 0x01, 0x80
|
||||
0x00, 0x00, 0x00, 0x70, 0x38, 0x70, 0x38, 0x70, 0x3c, 0xe0, 0x0e, 0xee, 0x07, 0xce, 0x1f, 0xfe,
|
||||
0x7f, 0xf0, 0x73, 0xc0, 0x77, 0xe0, 0x07, 0x78, 0x0f, 0x78, 0x0e, 0x38, 0x0e, 0x00, 0x00, 0x00
|
||||
};
|
||||
// 'smiley', 16x16px
|
||||
const unsigned char smiley_bmp [] PROGMEM = {
|
||||
0x07, 0xc0, 0x1f, 0xf0, 0x3f, 0xf8, 0x7f, 0xfc, 0x63, 0x8c, 0xdd, 0x76, 0xd3, 0x96, 0xe7, 0xce,
|
||||
0xff, 0xfe, 0xfd, 0x7e, 0x6f, 0xec, 0x73, 0x9c, 0x3c, 0x78, 0x1f, 0xf0, 0x07, 0xc0, 0x00, 0x00
|
||||
0xff, 0xfe, 0xfd, 0x7e, 0x67, 0xcc, 0x70, 0x1c, 0x3c, 0x78, 0x1f, 0xf0, 0x07, 0xc0, 0x00, 0x00
|
||||
};
|
||||
// 'frown', 16x16px
|
||||
const unsigned char frown_bmp [] PROGMEM = {
|
||||
0x07, 0xc0, 0x1f, 0xf0, 0x3f, 0xf8, 0x67, 0xcc, 0x53, 0x94, 0xdd, 0x76, 0xd9, 0x36, 0xe1, 0x0e,
|
||||
0xff, 0xfe, 0xff, 0xfe, 0x78, 0x3c, 0x73, 0x9c, 0x37, 0xd8, 0x1f, 0xf0, 0x07, 0xc0, 0x00, 0x00
|
||||
};
|
||||
//sprite_t smiley = { 6, 16, 16, 0, 1, 2, smiley_bmp };
|
||||
//sprite_t frown = { unsigned short c6, 16, 16, 0, 1, 2, frown_bmp };
|
||||
|
||||
|
||||
// 'neutral', 16x16px
|
||||
const unsigned char neutral_bmp [] PROGMEM = {
|
||||
0x07, 0xc0, 0x1f, 0xf0, 0x3f, 0xf8, 0x67, 0xcc, 0x53, 0x94, 0xdd, 0x76, 0xd9, 0x36, 0xe1, 0x0e,
|
||||
0xff, 0xfe, 0xfd, 0x7e, 0x7f, 0xfc, 0x70, 0x1c, 0x3f, 0xf8, 0x1f, 0xf0, 0x07, 0xc0, 0x00, 0x00
|
||||
};
|
||||
#endif // _INSOLAB_BITMAP_H_
|
||||
|
||||
Reference in New Issue
Block a user