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()
7
void
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
24
void
animation(uint8_t *buffptr, uint8_t amspeed, uint8_t ammode, int64_t amcount = -1);
25
void
displaybuff(uint8_t *buffptr, int8_t offsetx = 0, int8_t offsety = 0);
26
void
setBrightness(uint8_t brightness);
27
void
drawpix(uint8_t xpos, uint8_t ypos, CRGB Color);
28
void
drawpix(uint8_t Number, CRGB Color);
29
void
clear();
30
//! color the button light
31
void
fillpix(CRGB Color);
32
33
//! 7.24.25 return a (semi) random color
34
CRGB
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_
setup_M5Display
void setup_M5Display()
the setup() no loop()
Definition:
M5Display.cpp:5
getRandomColor
ColorsUnified getRandomColor()
7.24.25 return a (semi) random color
Definition:
MainModule.cpp:4494
src
ATOM_LED_Module
M5Display.h
Generated on Wed Sep 23 2026 09:28:52 for ESP_IOT by
1.9.5