Comments (6)
Hey, you have to convert your int into a char.
from esp32_tft_library.
print takes a char * (string) argument.
from esp32_tft_library.
That is not how you convert an int to a string in C. The starting point here is the stdlib function sprintf
. But you will first have to allocate enough memory for your string. Here is an example where they allocate some memory, declare some ints, and then make a string with those ints.
https://www.geeksforgeeks.org/sprintf-in-c/
from esp32_tft_library.
I tried but getting the same error :/
from esp32_tft_library.
What I want to do is something like that;
int x=0;
while(1) {
x++;
TFT_print(x,10.10);
vTaskDelay(1000/portTICK_PERIOD_MS); }
It didn't work when I try to write TFT_print(char *x,10,10);
Thanks for the answers, but I couldn't make it work :/
from esp32_tft_library.
Thank you so much guys... It's working
from esp32_tft_library.
Related Issues (20)
- Cannot open menuconfig becuase CMakeLists.txt is missing HOT 1
- LCD tft32 font library
- Support SPI 4-wire read
- ILI9486 power on with white screen.
- New Display - ST7789V on TTGO - Inverted Colours HOT 1
- Why custom Spiffs component?
- Connect MAX6675 and "spi_dma_chan" failed
- Compile with arduino IDE? HOT 1
- clear
- make menuconfig issue HOT 1
- ST7687S support
- BMP image don't work fine
- ST7789V2 support on M5StickC-Plus HOT 6
- License HOT 1
- ESP-IDF now using CMAKE code no longer works HOT 2
- solved: my way to compile and run tft_demo on ILI9341. Great thanks Loboris
- Can't _fillRect at the far right edge
- TFT_invertDisplay() not working on M5Stack boards
- tft.readPixel always return 0xFFFFFF
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp32_tft_library.