cyproto-63-ble

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

cross mob
RiPi_3504686
Level 1
Level 1
First like given First comment on blog Welcome!

Hi, I have the cyproto-063-ble kit I just bought it. It is very different from programming than the 5LP kit. Someone could tell me that I have a bad code because if it runs without errors, but it does not work when I download it to the kit.

If I put the forum (;;) if it works and turn the LEDs on and off

#include "project.h"

int main(void)
{
    __enable_irq(); /* Enable global interrupts. */

    /* Place your initialization/startup code here (e.g. MyInst_Start()) */
# define LED_ON      (uint8) (0)
# define LED_OFF     (uint8) (1)
# define pasos       (uint8) (10)
   
    for(uint8 i=0;i==10;i++)
     {
        //Cy_GPIO_Write(Pin1_0_Port, Pin1_0__Num, LED_ON);
        /* Place your application code here. */
        Cy_GPIO_Write(Pin1_0_PORT, Pin1_0_NUM, LED_ON);
        Cy_GPIO_Write(Pin2_0_PORT, Pin2_0_NUM, LED_ON);
        CyDelay(500);
        Cy_GPIO_Write(Pin1_0_PORT, Pin1_0_NUM, LED_OFF);
        Cy_GPIO_Write(Pin2_0_PORT, Pin2_0_NUM, LED_OFF);
        CyDelay(500);
   
     }
   

}

/* [] END OF FILE */

0 Likes
1 Solution
GiRa_4021896
Level 2
Level 2
5 replies posted 5 questions asked First question asked

I==0 is wrong, it should either be I < 10 or I <=10 depending on what you want

View solution in original post

1 Reply
GiRa_4021896
Level 2
Level 2
5 replies posted 5 questions asked First question asked

I==0 is wrong, it should either be I < 10 or I <=10 depending on what you want