11 years, 4 months ago.  This question has been closed. Reason: Off Topic

testing ports.

  1. include "mbed.h" PortInOut p0(Port0,0x7007fff0); PortInOut p1(Port1,0x00180000); PortInOut p2(Port2,0x07e00000); int main() { p0.mode(PullDown); p1.mode(PullDown); p2.mode(PullDown);

while(1) { p0.write(0xffffffff); p1.write(0xffffffff); p2.write(0xffffffff); wait(0.5); p0.write(0x00000000); p1.write(0x00000000); p2.write(0x00000000); } }