hello please help me

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

i have nokia 5110lcd and Psoc 4100 prototype , My Creater is Psoc 3.0 Creater 

   

than I can print that command use : LCD_string("any word");

   

but i cant print float, decimal etc ... same one help me that problem 

   

 

   

my mail is toogoo369@yahoo.com

0 Likes
1 Solution
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum!

   

No need to present your email address here, I suggest you to delete it.

   

To print floats use the sprintf() function which will convert a float into a string. Some prerequisites:

   

Update to PSoC Creator 3.0 from Cypress website

   

In the view of the .cydwr file, "System" tab: set the "heap size" to 0x0200

   

In Project -> Build Settings -> Linker set use newlib-nano float formatting to "true"

   

in your main.c add a #include <stdio.h>

   

 

   

Happy coding

   

Bob

View solution in original post

0 Likes
9 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Welcome in the forum!

   

No need to present your email address here, I suggest you to delete it.

   

To print floats use the sprintf() function which will convert a float into a string. Some prerequisites:

   

Update to PSoC Creator 3.0 from Cypress website

   

In the view of the .cydwr file, "System" tab: set the "heap size" to 0x0200

   

In Project -> Build Settings -> Linker set use newlib-nano float formatting to "true"

   

in your main.c add a #include <stdio.h>

   

 

   

Happy coding

   

Bob

0 Likes
Anonymous
Not applicable

hi thanks for answer me 

   

i am beginner so i not good your advice , i think first i follow example project on Psoc3.0 creater and Psoc 4 CY8CKIT-049-42xx board 

   

so can you help me to give 5110.c 5110.h and printf (float ...)  etc

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

i have 5110.c and .h file can you show 

0 Likes
Anonymous
Not applicable

that file work on Psoc 3.0 creater

0 Likes
lock attach
Attachments are accessible only for community members.
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Here is a program that shows how to use the sprintf() commands.  It is setup for Psoc 5lp and is running on PSoC Creator  3.3 CP2 (3.3.0.7343).

0 Likes
lock attach
Attachments are accessible only for community members.
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Here is the program using a CY8Ckit-049-42xx.

0 Likes
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Up date your PSOC Creator to the latest version as it makes support easier.

0 Likes
Anonymous
Not applicable

should i update Psoc3.0 became to 3.3 CP2 ? After that archive02 file will work on Psoc3.3 CP2  ?  So Do i dont need other bootloadable.hex file from using now ?

0 Likes
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

You need recompile the SCB_bootloader.cwrk file  after you update to Psoc Creator 3.3 CP2 that way you will have the correct files for the  bootloadable  dependencies . You should also install all of the kit files you intend to use.  Make sure your other files are updated also such as the PsocProgrammer is updated also.