/arduinoSerialTest/SensorInput.h
https://bitbucket.org/jat45/ami · C Header · 14 lines · 9 code · 3 blank · 2 comment · 0 complexity · ab94e078e4571079074484fb09e2abc6 MD5 · raw file
- #ifndef SENSOR_INPUT_H
- #define SENSOR_INPUT_H
- // character used to seperate fields in formatted sensor reading strings
- #define STRING_SEP_CHAR ':'
- // struct for handling strings from sensor readings in a sensible manner
- struct SensorInput {
- char busType[1]; // (A)nalog, (D)igital, (I)2C
- int deviceNumber; // A/D: pin number, I: I2C device address
- int registerNumber; // A/D: which device on the pin (only relevant if we've shift registers/mux/etc, 0 if just one device), I: register
- };
- #endif