Touch screen thermostat problems

8 years 9 months ago - 8 years 9 months ago #1862 by kindr
Hello solution is simple .
fixes in files with fonts (font_name.c in UTFT folder )"uint8_t" to "const char"

for example

original file
// various_symbols.c
// Font type    : Full (95 characters)
// Font size    : 16x16 pixels
// Memory usage : 3044 bytes
// Submitted by : MBWK

#include <avr/pgmspace.h>

uint8_t  various_symbols[3044] PROGMEM={

fixed file
// various_symbols.c
// Font type    : Full (95 characters)
// Font size    : 16x16 pixels
// Memory usage : 3044 bytes
// Submitted by : MBWK

#include <avr/pgmspace.h>

/*uint8_t*/const char various_symbols[3044] PROGMEM={
The following user(s) said Thank You: hangfire

Please Log in or Create an account to join the conversation.

8 years 9 months ago #1870 by hangfire
I cant get this to work, does anyone have the file package that works?

Please Log in or Create an account to join the conversation.

8 years 9 months ago #1878 by EasyIoT

hangfire wrote: I cant get this to work, does anyone have the file package that works?


Here you can download my Arduino IDE

iot-playground.com/swdownload/Arduino.zip

unzip it to your computer and try compile thermostat sketch with it
The following user(s) said Thank You: hangfire

Please Log in or Create an account to join the conversation.

8 years 9 months ago #1885 by hangfire
Now I got it! Thanks for your help here. I'm not sure if it will work correctly but I used the IDE you gave me and changed the font files similarly to what kindr suggested. I change "const uint8_t various_symbols[3044] PROGMEM={" and removed the const, it compiled then, but I don't know if they need to be constants. At least I can get it to load and run now..

Please Log in or Create an account to join the conversation.

8 years 6 months ago - 8 years 6 months ago #2303 by hjsalom
And... I am lost.

I am working with Arduino 1.6.5

I assumed the .h files for the fonts do not exist and I added the contents of the fonts .c files to the .ino file.

I also made the change from "iunt8_t* const..." to "const char..." as indicated above.

However, when I compile, I get an error at every single instruction which uses any of the three fonts defined by the "const char...: instructions. The error reads as follows:

Invalid conversion from 'const char*' to unit8_t* {aka unsigned char*}' {-fpermissive}

Any idea what is going on ?



What am I missing ?

Thanks,

Please Log in or Create an account to join the conversation.

8 years 6 months ago #2311 by EasyIoT

hjsalom wrote: And... I am lost.

I am working with Arduino 1.6.5

I assumed the .h files for the fonts do not exist and I added the contents of the fonts .c files to the .ino file.

I also made the change from "iunt8_t* const..." to "const char..." as indicated above.

However, when I compile, I get an error at every single instruction which uses any of the three fonts defined by the "const char...: instructions. The error reads as follows:

Invalid conversion from 'const char*' to unit8_t* {aka unsigned char*}' {-fpermissive}

Any idea what is going on ?



What am I missing ?

Thanks,


Originally code was compiled with Arduino IDE 1.0.6. There are some issues with Ardino 1.6.5 when you compile this code.

Please Log in or Create an account to join the conversation.

Time to create page: 0.285 seconds

Forum latest

  • No posts to display.