- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can`t control output pin. I made as in example :
#define LED_OFF 1u
#define LED_ON 0u
RED_Write(LED_ON);
RED_Write(LED_OFF);
But it always On and not changed 😞
Attached pin settings window.
What wrong ?
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your main-loop is
for(;;)
{
/* Place your application code here. */
LED_Write(LED_ON);
CyDelay( 500);
LED_Write(LED_OFF);
}
So you will need another delay after switching the LED off or it will be switched on immediately when the loop is executed again.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your main-loop is
for(;;)
{
/* Place your application code here. */
LED_Write(LED_ON);
CyDelay( 500);
LED_Write(LED_OFF);
}
So you will need another delay after switching the LED off or it will be switched on immediately when the loop is executed again.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks