UserTypes.h 374 B

123456789101112131415
  1. #ifndef UserTypes_h
  2. #define UserTypes_h
  3. #include "Arduino.h"
  4. // User data types. Modify for your data items.
  5. #define FILE_BASE_NAME "adc4pin"
  6. const uint8_t ADC_DIM = 4;
  7. struct data_t {
  8. uint32_t time;
  9. uint16_t adc[ADC_DIM];
  10. };
  11. void acquireData(data_t* data);
  12. void printData(Print* pr, data_t* data);
  13. void printHeader(Print* pr);
  14. void userSetup();
  15. #endif // UserTypes_h