Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
9 years, 4 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
- include "mbed.h"
DigitalOut myled(PTE4);
int main() { myled=1; //
while(1) { myled = 1; wait(0.2); myled = 0; wait(0.2); } }
1 Answer
9 years, 4 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