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

PSoC™ 4 Forum Discussions

Anonymous
Not applicable

Trying the blinking LED program on the CY8CKIT-046.  The code:

    for(;;)

    {

        Pin_Red_Write( ! Pin_Red_Read() );

        CyDelay(500);

    }

I set the hardware pin to P0[3].  The programmer displays 'Device .... was successfully programmed' yet no LED is blinking.

Should I be setting a different port/pin for the -046 kit's onboard LED?

0 Likes
1 Solution
BrandonP_16
Employee
Employee
First like received Welcome!

Hi,

CY8CKIT-046 has onboard RGB LED and your code seems no problem, but your pin assignment is wrong.

In CY8CKIT-046 kit, RGB LED is connected with P5.2(R), P5.3(G) and P5.4(B). You can also find the schematic in kit guide page 55.

Please change the pin assignment and re-test.

Thanks,

Brandon

View solution in original post

0 Likes
2 Replies
BrandonP_16
Employee
Employee
First like received Welcome!

Hi,

CY8CKIT-046 has onboard RGB LED and your code seems no problem, but your pin assignment is wrong.

In CY8CKIT-046 kit, RGB LED is connected with P5.2(R), P5.3(G) and P5.4(B). You can also find the schematic in kit guide page 55.

Please change the pin assignment and re-test.

Thanks,

Brandon

0 Likes
Anonymous
Not applicable

Thank you, Brandon!  That had me stuck - all good now.

0 Likes