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.
11 years, 1 month ago.
FRDM KL25Z working backwards
Hi, im using an FRDM KL25Z board, with this code:
#include "mbed.h"
DigitalOut myled(LED1);
int main() {
while(1) {
myled=1;
}
}
But instead of turning on the led assigned, is turned off. and when i put the following code
#include "mbed.h"
DigitalOut myled(LED1);
int main() {
while(1) {
myled=0;
}
}
instead of turning off the led assigned, is turned on.
Is something wrong with my board?
Greetings
1 Answer
11 years, 1 month ago.
That's normal. LEDs are pulled-up.