Color sensor reset at the end of calibration added. sensor id auto assignment was changed to be a fixed value assignment to avoid sensor id shift when some sensor is absent.

Dependencies:   UniGraphic mbed vt100

Committer:
Rhyme
Date:
Fri Feb 23 05:40:22 2018 +0000
Revision:
0:ce97f6d34336
color sensor reset was added at the end of calibration

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Rhyme 0:ce97f6d34336 1 #ifndef _MARUSOL_DEBUG_IO_HPP_
Rhyme 0:ce97f6d34336 2 #define _MARUSOL_DEBUG_IO_HPP_
Rhyme 0:ce97f6d34336 3
Rhyme 0:ce97f6d34336 4 #if defined (TARGET_TEENSY3_1)
Rhyme 0:ce97f6d34336 5 #include "USBSerial.h"
Rhyme 0:ce97f6d34336 6 #else
Rhyme 0:ce97f6d34336 7 #include "mbed.h"
Rhyme 0:ce97f6d34336 8 #endif
Rhyme 0:ce97f6d34336 9
Rhyme 0:ce97f6d34336 10 // #define SERIAL_PRINT_DBG_ON
Rhyme 0:ce97f6d34336 11 #ifdef SERIAL_PRINT_DBG_ON
Rhyme 0:ce97f6d34336 12 #define SERIAL_PRINT_DBG(...) (printf(__VA_ARGS__))
Rhyme 0:ce97f6d34336 13 #define SERIAL_PRINT_DBG_FUNCNAME() (printf("%s,%d,%s\n",__FILE__,__LINE__,__PRETTY_FUNCTION__))
Rhyme 0:ce97f6d34336 14 #else
Rhyme 0:ce97f6d34336 15 #define SERIAL_PRINT_DBG(...)
Rhyme 0:ce97f6d34336 16 #define SERIAL_PRINT_DBG_FUNCNAME()
Rhyme 0:ce97f6d34336 17 #endif //SERIAL_PRINT_DBG_ON
Rhyme 0:ce97f6d34336 18
Rhyme 0:ce97f6d34336 19 // #define SERIAL_PRINT_DBG_ASR_ON
Rhyme 0:ce97f6d34336 20 #ifdef SERIAL_PRINT_DBG_ASR_ON
Rhyme 0:ce97f6d34336 21 #define SERIAL_PRINT_DBG_ASR(...) (printf(__VA_ARGS__))
Rhyme 0:ce97f6d34336 22 #else
Rhyme 0:ce97f6d34336 23 #define SERIAL_PRINT_DBG_ASR(...)
Rhyme 0:ce97f6d34336 24 #endif //SERIAL_PRINT_DBG_ASR_ON
Rhyme 0:ce97f6d34336 25
Rhyme 0:ce97f6d34336 26 #endif //_MARUSOL_DEBUG_IO_HPP_