M5Unified
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
b
d
e
f
h
i
l
m
n
p
r
s
t
Functions
Variables
Typedefs
Enumerations
Enumerator
d
e
f
h
i
l
m
n
p
r
s
t
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
g
i
l
m
o
p
r
s
t
u
w
~
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
a
c
g
i
o
p
s
Files
File List
File Members
All
_
a
c
e
g
i
l
m
n
p
r
s
t
u
v
x
y
z
Functions
Variables
Typedefs
Macros
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
sdl_main.cpp
Go to the documentation of this file.
1
#include <M5GFX.h>
2
#if defined ( SDL_h_ )
3
4
void
setup
(
void
);
5
void
loop
(
void
);
6
7
__attribute__
((weak))
8
int
user_func(
bool
* running)
9
{
10
setup
();
11
do
12
{
13
loop
();
14
}
while
(*running);
15
return
0;
16
}
17
18
int
main(
int
,
char
**)
19
{
20
// The second argument is effective for step execution with breakpoints.
21
// You can specify the time in milliseconds to perform slow execution that ensures screen updates.
22
return
lgfx::Panel_sdl::main(user_func, 128);
23
}
24
25
#endif
m5::__attribute__
struct __attribute__((packed)) rtc_time_t
Definition:
RTC8563_Class.hpp:20
loop
void loop(void)
Definition:
user_code.cpp:19
setup
void setup(void)
Definition:
user_code.cpp:3
examples
PlatformIO_SDL
src
sdl_main.cpp
Generated by
1.9.1