8 years, 8 months ago.

pin problem ..showing wrong voltages

I made one of the pin high ...and i measured the voltage...it was around 3.3v....later i made the pin low...the voltage was 0....later again i made the pin high...it is showing 0 volts........wt is the problem

  1. include "mbed.h"

DigitalOut myled(PTE4);

int main() { myled=1; //

while(1) { myled = 1; wait(0.2); myled = 0; wait(0.2); } }

1 Answer

8 years, 8 months ago.

Hi vishwas,

When you post some code, please use <<<<code>>>> tags (look at editing tips).

Code from vishwas

include "mbed.h" 

DigitalOut myled(PTE4);

int main()
{
   myled=1;

   while(1)
   {
      myled = 1;
      wait(0.2);
      myled = 0;
      wait(0.2);
   }
}

Regarding your question, what is the board that you are using with this example code?

Cheers, Miloje

Accepted Answer

i m using FRDM KL25Z

posted by vishwas nagekar 09 Sep 2015