14 Replies Latest reply on Feb 9, 2013 5:52 AM by user_14586677

    LED so dim on PSOC 1

    riko.husin

      Guys,

         

       

         

      I tried to blink those LED on PSOC, but the LEDs are so dim,

         

      Does anyone know why ?

         

       

         

      Here's the code :

         

       

         

      //----------------------------------------------------------------------------
      // C main line
      //----------------------------------------------------------------------------

      #include <m8c.h>        // part specific constants and macros
      #include "PSoCAPI.h"    // PSoC API definitions for all User Modules
      #include "delay.h"
      #include "ports.h"
      #include "bits.h"

      void main(void)
      {
        unsigned int i;                     /* Delay var */
        unsigned char j;                    /* LED var */
        while(1)
         {
       
          P0_0(0); //Turns the LED Off.
          P0_1(0);
          P0_2(0);
          P0_3(0);
         
          Delay10msTimes(100);
          P0_0(1); //Turns the LED On.
          P0_1(1);
          P0_2(1);
          P0_3(1);
         
         
        }
      }
       

         

       

         

      Thanks for reading and helping