printf("..") to terminal using FRDM board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

printf("..") to terminal using FRDM board

466 Views
allenwong
Contributor II

Hello folks,

 

What's wrong with my code below:

 

for(;;) {

 

      y=x % 3;

 

      if(y==1)

      {

          LED_G_SetVal(Green_Ptr);

          LED_B_SetVal(Blue_Ptr);

          LED_R_NegVal(Red_Ptr);

      }

 

      printf("\r\nRed LED\r\n");     /*Red LED Output to Terminal*/

 

 

I can't see the "Red LED" in terminal output.

Do i need to include any delay?

Labels (1)
0 Kudos
1 Reply

279 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hello Allen,

I recommend you read this document.

How to use printf() to print string to Console and UART in KDS

it should help you.


Have a great day,
Zhang Jun

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos