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.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
I believe the pin name for K64F is not correct but I do not the time to trace the schematic and look up the datasheet. Can the developer look info it?
Below is my test program:
#include "mbed.h" DigitalOut red (LED_RED); DigitalOut green(LED_GREEN); DigitalOut blue (LED_BLUE); int main() { while (1) { printf("red\n\r"); red = 1; green = 0; blue = 0; wait(5.0); printf("green\n\r"); red = 0; green = 1; blue = 0; wait(5.0); printf("blue\n\r"); red = 0; green = 0; blue = 1; wait(5.0); printf("red+green\n\r"); red = 1; green = 1; blue = 0; wait(5.0); printf("green+blue\n\r"); red = 0; green = 1; blue = 1; wait(5.0); printf("red+blue\n\r"); red = 1; green = 0; blue = 1; wait(5.0); } }