\r
#define ACC_SNS_DEFAULT 0.01 // default collecting interval in seconds\r
#define MAG_SNS_DEFAULT 0.1\r
\r
#define ACC_SNS_DEFAULT 0.01 // default collecting interval in seconds\r
#define MAG_SNS_DEFAULT 0.1\r
// Interruption Declarations\r
//clock1.attach(&clock1_interrupt, TIME_ACCURACY); // maximun accuracy be 0.1s\r
serial.attach(&serialRx_interrupt, Serial::RxIrq); // receive interrupt for serialS\r
// Interruption Declarations\r
//clock1.attach(&clock1_interrupt, TIME_ACCURACY); // maximun accuracy be 0.1s\r
serial.attach(&serialRx_interrupt, Serial::RxIrq); // receive interrupt for serialS\r
// Write A2D output sine wave\r
a2dOutput.write(sin(a2dCnt * TIME_ACCURACY * (2*PI) * 0.1));\r
\r
// Send data through Serial\r
// Write A2D output sine wave\r
a2dOutput.write(sin(a2dCnt * TIME_ACCURACY * (2*PI) * 0.1));\r
\r
// Send data through Serial\r