Kouichi Iijima
/
KXP84-2050_test
main.cpp
- Committer:
- mr11451
- Date:
- 2011-01-24
- Revision:
- 0:ca2662a35eb0
- Child:
- 4:da0bfca19735
File content as of revision 0:ca2662a35eb0:
#include "KXP84.h" #define VERSION 0 #define REVISION 1 #ifdef _DEBUG Serial debug(USBTX, USBRX); // tx, rx #define dbg(FMT,...) debug.printf(FMT, ##__VA_ARGS__) #else #define dbg(...) #endif void tickproc(); KXP84_2050 kxp84(p11,p12,p13,p14,p10); /* KXP84 compatible digital SPI input (PinName mosi, PinName miso, PinName sclk, PinName cs, PinName rst) */ //KXM52_1050 kxm52(p10,p15,p16,p17); /* KXM52 compatible analog input (PinName power, PinName ix, PinName iy, PinName iz) */ int main() { dbg("\rKXP84-2050 Test Program %d.%03d\r\n", VERSION, REVISION); kxp84.Set_Risthner(tickproc); kxp84.Start(); } void tickproc() { dbg("%4X %4X %4X\r\n", kxp84.Get_X(), kxp84.Get_Y(), kxp84.Get_Z() ); }