This code is used to transmit the temperature sensed by the mbed to the xively via wifly. The car is self controlled.
Dependencies: C12832_lcd WiflyInterface libxively mbed-rtos mbed
Fork of Mode-1_PS2_Wifly_Xively by
xi_user_config.h@6:9abfe16d39e0, 2014-06-09 (annotated)
- Committer:
- bhakti08
- Date:
- Mon Jun 09 12:18:36 2014 +0000
- Revision:
- 6:9abfe16d39e0
- Parent:
- 5:efa4a9eafe7d
Mode1 PS2-Wifly-Xively
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bhakti08 | 5:efa4a9eafe7d | 1 | #ifndef __XI_USER_CONFIG_H__ |
bhakti08 | 5:efa4a9eafe7d | 2 | #define __XI_USER_CONFIG_H__ |
bhakti08 | 5:efa4a9eafe7d | 3 | |
bhakti08 | 5:efa4a9eafe7d | 4 | // The following settings should lower memory footprint. |
bhakti08 | 5:efa4a9eafe7d | 5 | // The library currently allows one to send batch datapoint |
bhakti08 | 5:efa4a9eafe7d | 6 | // and feed updates, but it's not needed in most use cases |
bhakti08 | 5:efa4a9eafe7d | 7 | #define XI_MAX_DATAPOINTS 1 |
bhakti08 | 5:efa4a9eafe7d | 8 | // The number of channels can be increased if needed |
bhakti08 | 5:efa4a9eafe7d | 9 | #define XI_MAX_DATASTREAMS 5 |
bhakti08 | 5:efa4a9eafe7d | 10 | |
bhakti08 | 5:efa4a9eafe7d | 11 | // Below are optimisations that reduce some minor functionality |
bhakti08 | 5:efa4a9eafe7d | 12 | #define XI_OPT_NO_ERROR_STRINGS |
bhakti08 | 5:efa4a9eafe7d | 13 | |
bhakti08 | 5:efa4a9eafe7d | 14 | // If you wish to enable assertions, set this to 1 |
bhakti08 | 5:efa4a9eafe7d | 15 | #define XI_DEBUG_ASSERT 0 |
bhakti08 | 5:efa4a9eafe7d | 16 | // If you wish to disable debug output, set this to 0 |
bhakti08 | 5:efa4a9eafe7d | 17 | #define XI_DEBUG_OUTPUT 0 |
bhakti08 | 5:efa4a9eafe7d | 18 | |
bhakti08 | 5:efa4a9eafe7d | 19 | // On the mbed app board we can use the LCD for debug output, |
bhakti08 | 5:efa4a9eafe7d | 20 | // but one may wish to modify this and write to file instead |
bhakti08 | 5:efa4a9eafe7d | 21 | #include "app_board_io.h" |
bhakti08 | 5:efa4a9eafe7d | 22 | #define XI_DEBUG_PRINTF lcd_printf //TODO: use serial port... |
bhakti08 | 5:efa4a9eafe7d | 23 | |
bhakti08 | 5:efa4a9eafe7d | 24 | #endif /* __XI_USER_CONFIG_H__ */ |