Aviral Gupta
Published

Blinking LED

The title says it all - blinking the onboard LED.

EasyProtip30 minutes344

Things used in this project

Hardware components

Cypress CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit
×1

Software apps and online services

PSoC Creator
Cypress PSoC Creator

Story

Read more

Code

Blink_LED

C/C++
this code is designd to get started with the PSoc 4 BLE Pioneer KIT
/* ======================================== 
* 
* Copyright YOUR COMPANY, THE YEAR 
* All Rights Reserved 
* UNPUBLISHED, LICENSED SOFTWARE. 
* 
* CONFIDENTIAL AND PROPRIETARY INFORMATION 
* WHICH IS THE PROPERTY OF your company. 
* 
* ======================================== 
*/ 
#include "project.h" 
int main(void) 
{ 
   CyGlobalIntEnable; /* Enable global interrupts. */ 
   /* Place your initialization/startup code here (e.g. MyInst_Start()) */ 
   LED_R_Write(1); //turning led off
   LED_G_Write(1); 
   LED_B_Write(1); 
   for(;;) 
   { 
       LED_B_Write(1);// turning on one at a time 
       LED_R_Write(0); 
       CyDelay(300); 
       LED_R_Write(1); 
       LED_G_Write(0); 
       CyDelay(300); 
       LED_G_Write(1); 
       LED_B_Write(0); 
       CyDelay(300); 
   } 
} 
/* [] END OF FILE */ 

Credits

Aviral Gupta

Aviral Gupta

1 project • 1 follower
Contact

Comments

Add projectSign up / Login