You are here

Things used in this project

Hardware components:
Cypress CY8CKIT-042-BLE Bluetooth® Low Energy (BLE) Pioneer Kit
×1
Software apps and online services:
Creator bannerimage 2
Cypress PSoC Creator

Code

Blink_LEDC/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

B20fe1b188d9438b076c74a254693171
Aviral Gupta
0 projects • 1 follower
Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Add projectSign up / Login