Demo application of SNICInterface library for Murata TypeYD, which reports sensor data periodically to Xively cloud server . Hardware platform: mbed application board (https://mbed.org/cookbook/mbed-application-board), mbed LPC1768 (https://mbed.org/platforms/mbed-LPC1768/) and TypeYD.

Dependencies:   C12832 LM75B MMA7660 SNICInterface libxively mbed-rtos mbed

Committer:
kishino
Date:
Tue Nov 25 00:33:30 2014 +0000
Revision:
27:6949291ca38d
Parent:
22:e567f0d4b05d
Add the definition of serial for debugging output.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
xively 7:0eff5db44b8b 1 #include "app_board_io.h"
kishino 22:e567f0d4b05d 2 #include "C12832.h"
xively 7:0eff5db44b8b 3
kishino 22:e567f0d4b05d 4 extern C12832 lcd;
xively 7:0eff5db44b8b 5
xively 7:0eff5db44b8b 6 extern "C" void lcd_printf( const char* fmt, ... )
xively 7:0eff5db44b8b 7 {
xively 7:0eff5db44b8b 8 char buffer[ 64 ];
xively 7:0eff5db44b8b 9
xively 7:0eff5db44b8b 10 va_list ap;
xively 7:0eff5db44b8b 11 va_start( ap, fmt );
xively 7:0eff5db44b8b 12 vsnprintf( buffer, 64, fmt, ap );
xively 7:0eff5db44b8b 13 va_end( ap );
xively 7:0eff5db44b8b 14
xively 7:0eff5db44b8b 15 lcd.cls();
xively 7:0eff5db44b8b 16 lcd.locate( 0, 3 );
xively 7:0eff5db44b8b 17 lcd.printf( buffer );
xively 7:0eff5db44b8b 18 //wait( 1.0 );
xively 7:0eff5db44b8b 19 }