Skip to main content

The ESP32 Cheap Yellow Display Book (Extract)

Page 1

85, 205,

2 t(15, 15, c e R w a r d . t f

books books

The ESP32 Cheap Yellow Display Book y

ispla Read and d

d humidity

ature an the temper

id loop()

Projects Using Arduino IDE and ; p m a, g, te t_t LVGL n e v e _ s the Graphics Library r o s sen temp);

//

&a, &g, &

nt( mpu.getEve

leration. e c c a . a ( g n = “ + Stri ) X ( c c A “ eration. = l e X c c c c a a . a g ( n g i n Str = “ + Stri ) Y ( c c A “ eration. = l e Y c c c c a a . a g ( n g i n Str = “ + Stri ) Z ( c c A “ Z = String acc

ro.x); tring(g.gy S + “ = ) X X = “Rot ( yro.y); String Rot String(g.g + “ = ) Y Y = “Rot ( yro.z); String Rot String(g.g + “ = ) Z Z = “Rot ( “ C”; String Rot erature) + p m e t . p m e t ing( = “) + Str (“Temp g n i r t S = on X accelerati String Tmp // Display ation Y E4); ay acceler , FONT_SIZ l 0 p 3 s i , D 7 3 / / , X ring(acc ration Z ZE4); tft.drawSt lay accele 0, FONT_SI p 5 s i , D 7 3 / / , Y c ring(ac ZE4); rotation X tft.drawSt 0, FONT_SI 7 , 7 3 // Display , Z c c a ( g n i ; r ) t ion Y SIZE4 tft.drawS play rotat 100, FONT_ s i , D 7 3 / / , X t o ring(R SIZE4); tft.drawSt 120, FONT_ , 7 3 , Y t o ring(R tft.drawSt

Dogan Ibrahim


Turn static files into dynamic content formats.

Create a flipbook
The ESP32 Cheap Yellow Display Book (Extract) by Elektor - Issuu