RETRO ROBOT E
Dependencies: DisplayN18 ROBOT SC16IS750 mbed
Revision 0:757b151e589e, committed 2015-03-02
- Comitter:
- RLRiedinger
- Date:
- Mon Mar 02 04:24:41 2015 +0000
- Commit message:
- RETRO ROBOT E
Changed in this revision
diff -r 000000000000 -r 757b151e589e DisplayN18.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/DisplayN18.lib Mon Mar 02 04:24:41 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/RLRiedinger/code/DisplayN18/#efe9c8c9c925
diff -r 000000000000 -r 757b151e589e ROBOT.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ROBOT.lib Mon Mar 02 04:24:41 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/RLRiedinger/code/ROBOT/#4837c9695a02
diff -r 000000000000 -r 757b151e589e SC16IS750.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/SC16IS750.lib Mon Mar 02 04:24:41 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/users/RLRiedinger/code/SC16IS750/#b57b71c0879a
diff -r 000000000000 -r 757b151e589e main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Mar 02 04:24:41 2015 +0000 @@ -0,0 +1,67 @@ +#include "mbed.h" +#include "ROBOT.h" +#include "SC16IS750.h" + +//#define AUTO_START + +#if defined(TARGET_LPC11U24) + + // SPI for LPC11U24 + + #define D_MOSI p5 + #define D_MISO p6 + #define D_SCLK p7 + #define D_CS p8 + + #define D_INTR P0_15 + #define D_RST P0_22 + + // I2C for LPC11U24 + + #define D_SCL P0_4 + #define D_SDA P0_5 + + // Serial for LPC11U24 + + #define D_TX USBTX + #define D_RX USBRX + + //#define D_RST p25 + //#define D_STS p26 + + #define ESP8266_RST P0_10 + + DigitalOut esp8266_rst(ESP8266_RST); + +#endif + +ROBOT robot; + +char UART_BUFFER[81]; + +void debug_print(unsigned int line, const char* function) { + + sprintf(UART_BUFFER, "%6d %s\r\n", line, function); + robot.serial_print2(UART_BUFFER); + + +} + +void debug_print_string(unsigned int line, const char* function, char * text) { + + sprintf(UART_BUFFER, "%6d %s %s\r\n", line, function, text); + robot.serial_print2(UART_BUFFER); + + +} + +int main() { + + robot.showSplashScreen(); + + robot.get_options(); + + //while (true) + // robot.tick(); + +}
diff -r 000000000000 -r 757b151e589e mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Mar 02 04:24:41 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5 \ No newline at end of file