Select esp 32 pico kit from the board list (both M5stickC and atom use this chip) and select 115200 as the baud rate. if your device doesn't show up in the listed ports you may need to install the cp210x serial com port driver
@powersoft Maybe you find it interesting to know that there is a way of compiling a picture into your code so that you do not need an SD-card. This could make your solution more simple.
Download the UTFT-library from Rinky Dink Electronics (http://www.rinkydinkelectronics.com/library.php?id=51)
Extract the download and use the Tools\Imageconverter565.exe to convert the image to a .c file (select AVR board)
Open the .c file and change the line '#include <avr/pgmspace.h>' into '#include<pgmspace.h>'
Insert the following lines in the file (the values should be the same as the image, 320x240 is max for M5Stack):
const uint16_t imageWidth = 320;
const uint16_t imageHeight = 240;
Rename the .c file into .h (e.g. logo.c into logo.h) and place the file in the folder where the .ino-file for your project is
In your Arduino-program add the following line in the top (or the other filename you have chosen)
In your Arduino-program add the following line in the 'setup'-function:
In your Arduino-program add the following line in the place where you want to show the image:
M5.Lcd.pushImage(0, 0, logoWidth, logoHeight, logo);
I have included a link to a small demo-file on the following page:
Hi @robalstona , @lukasmaximus and @hague ,
First of all, thanks for your very quick response! I found out what seems to be the problem;
I was using the M5Atom.h to control the leds, and somewhere in the M5.Update() the flickering sometimes occurred. The problem was indeed solved using the fastled library. The device works exactly as I was hoping now.
For this I needed to remove M5Atom.h, because indeed some functions and variables overlap.
Thanks again for pointing me in the right direction.
Greetings from a very happy Geert :-)