ESP_IOT v2.5
IOT ESP Coding
M5Display.h
Go to the documentation of this file.
1#ifndef M5DISPLAY_H
2#define M5DISPLAY_H
3
4#include "../../Defines.h"
5
6//! the setup() no loop()
7void setup_M5Display();
8
9#ifdef USE_FAST_LED
10
11//! CRGB is RGB
12//! https://github.com/FastLED/FastLED/wiki/Pixel-reference
13//! https://github.com/FastLED/FastLED/wiki/RGBSet-Reference
14//! https://gist.github.com/chemdoc77?page=3
15//! https://github.com/marmilicious/FastLED_examples/blob/master/blink_variations.ino
16
17//! @see https://community.m5stack.com/topic/5550/atom-lite-with-different-led-controllers-for-internal-led/7
18
19
20
21#include <FastLED.h>
22
23
24void animation(uint8_t *buffptr, uint8_t amspeed, uint8_t ammode, int64_t amcount = -1);
25void displaybuff(uint8_t *buffptr, int8_t offsetx = 0, int8_t offsety = 0);
26void setBrightness(uint8_t brightness);
27void drawpix(uint8_t xpos, uint8_t ypos, CRGB Color);
28void drawpix(uint8_t Number, CRGB Color);
29void clear();
30//! color the button light
31void fillpix(CRGB Color);
32
33//! 7.24.25 return a (semi) random color
34CRGB getRandomColor();
35
36//! colors
37#define L_RED (CRGB) 0xff0000
38#define L_GREEN (CRGB) 0x00ff00
39#define L_BLUE (CRGB) 0x0000ff
40#define L_WHITE (CRGB) 0xe0e0e0
41#define L_YELLOW (CRGB) 0xfff000
42#endif
43
44
45#endif //_M5DISPLAY_H_
void setup_M5Display()
the setup() no loop()
Definition: M5Display.cpp:5
ColorsUnified getRandomColor()
7.24.25 return a (semi) random color