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?
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!
-----------------------------------------------------------------------------------------------------------------------