2013-03-31から1日間の記事一覧
#include "mbed.h" #include "mbed_debug.h" #if defined(TARGET_KL25Z) SPI spi(PTE1,PTE3,PTE2); // SPI_1 DigitalOut cs(PTE4); #endif int main() { cs = 1; debug(" Read Coefficient(a0,b1,b2,c12)\n"); cs = 0; for(int addr = 0x04; addr <= 0x0b; a…