MBED wifi code from oxford repo
Dependencies: mbed
Fork of SerialPassthroughcjsESP8266 by
Diff: main.cpp
- Revision:
- 10:146515fc16f7
- Parent:
- 9:b1344ca3497d
diff -r b1344ca3497d -r 146515fc16f7 main.cpp --- a/main.cpp Wed Jun 08 10:07:11 2016 +0000 +++ b/main.cpp Tue Jun 14 14:32:35 2016 +0000 @@ -7,10 +7,10 @@ RawSerial pc(USBTX, USBRX); // serial terminal for the pc connection //RawSerial dev(PTE0,PTE1); // for KL25Z... asuming one can't use the PTA1 version which is the stdio -RawSerial dev(p28,p27); // serial uart for connecting to the esp8266 tx,rx NB mbed tx must connect ot esp rx and vice versa +RawSerial dev(PTE22,PTE23); // serial uart for connecting to the esp8266 tx,rx NB mbed tx must connect ot esp rx and vice versa DigitalOut led1(LED1); // twp leds DigitalOut led4(LED4); // to allow visual check of bidirectional comms -DigitalOut rst(p26); // single digital pin to drive the esp8266 reset line +DigitalOut rst(A0); // single digital pin to drive the esp8266 reset line // subroutine to run anytime a serial interrupt arrives from the device // this basically passes everything thatthe device produces on to the pc terminal screen