This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TIVA TM4C123GH6PM ADC

Currently practising the Chapter5:ADC12 on CCS.

In this lab I am trying to edit the code to display the temperature in degree Celsius and Fahrenheit in my Kentec touch screen display.

Lets say I set unsigned int tempC = ui32TempValueC;

I used the command "GrStringDraw" to display the numbers but got this error :

#169 argument of type "unsigned int" is incompatible with parameter of type "const char *"

 

  • Teng Aaron said:

    used the command "GrStringDraw" to display the numbers but got this error :

    #169 argument of type "unsigned int" is incompatible with parameter of type "const char *"

     As from mnemonic this expect a string to draw on graphics display..

     You provided a simple raw integer that is unprintable too... Is the same of printing a character as %c or %d or send it as %s...

  • @ Roberto,

    You are just too fast, man!   Note the "power/discipline" of "C" has saved poster from himself...

    Pity if this lab included that display (or similar) and then failed to illustrate first the harvest of data - followed by the proper conditioning/format of that data for further use/application...

    With the "red-fruit" vectored Dave W's absence - graphic lib. will prove an "adventure" to many. 

  • cb1_mobile said:

    @ Roberto,

    You are just too fast, man!   Note the "power/discipline" of "C" has saved poster from himself...

     Read I proposed to leave knife in favour of a machete to clean up this growing wild forest around us. Is no more time to cut Hair in a 4 precise part when still is on the air but to do some ground clean up of all debris and disordered grow all around there.

  • Roberto Romano said:
    Read I proposed to leave knife in favour of a machete...

    What has happened to our dull/boring, "CCS obsesssed" forum?  Your quote is among the top five - ever!

    (surely the nano-pulsed - PWM driven machete - cuts a wide/effective swathe...)  Great stuff man - you are on fire...

  • cb1_mobile said:
    What has happened to our dull/boring, "CCS obsesssed" forum? 

     After that huge BETA test action not much issue remain after the strange lock file not requiring privilege but locking CCS...  Hand in hand by Johns a great work is in place to solve a large plethora of issues.

     Here the silly trouble was increasing in size and I fell a division like in Beagle Board Black forum is on main

     Beginner you can learn how to use  also how to push the power button too....

     Expert  has enough knowledge contributing to development....