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
edge_utils/edge_pin.h@1:8818b793d147, 2018-02-23 (annotated)
- Committer:
- Rhyme
- Date:
- Fri Feb 23 07:51:55 2018 +0000
- Revision:
- 1:8818b793d147
- Parent:
- 0:ce97f6d34336
Wrong behavior when one of color sensor is missing has been fixed.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:ce97f6d34336 | 1 | #ifndef _EDGE_PIN_H_ |
Rhyme | 0:ce97f6d34336 | 2 | #define _EDGE_PIN_H_ |
Rhyme | 0:ce97f6d34336 | 3 | |
Rhyme | 0:ce97f6d34336 | 4 | #if defined (TARGET_KL25Z) |
Rhyme | 0:ce97f6d34336 | 5 | #define PIN_INTR PTD4 |
Rhyme | 0:ce97f6d34336 | 6 | #define PIN_ASR_RESET PTA13 |
Rhyme | 0:ce97f6d34336 | 7 | #define PIN_SCK PTD1 |
Rhyme | 0:ce97f6d34336 | 8 | #define PIN_MOSI PTD2 |
Rhyme | 0:ce97f6d34336 | 9 | #define PIN_MISO PTD3 |
Rhyme | 0:ce97f6d34336 | 10 | #define PIN_CS PTD0 |
Rhyme | 0:ce97f6d34336 | 11 | /* ILI9341 */ |
Rhyme | 0:ce97f6d34336 | 12 | #define PIN_CS_TFT PTC7 |
Rhyme | 0:ce97f6d34336 | 13 | #define PIN_RESET_TFT PTC4 |
Rhyme | 0:ce97f6d34336 | 14 | #define PIN_DC_TFT PTC0 |
Rhyme | 0:ce97f6d34336 | 15 | #define PIN_BL_TFT PTC3 |
Rhyme | 0:ce97f6d34336 | 16 | |
Rhyme | 0:ce97f6d34336 | 17 | #define PIN_FRDM_LEDR PTB18 |
Rhyme | 0:ce97f6d34336 | 18 | #define PIN_FRDM_LEDG PTB19 |
Rhyme | 0:ce97f6d34336 | 19 | #define PIN_FRDM_LEDB PTD1 /* conflict with SCK orz */ |
Rhyme | 0:ce97f6d34336 | 20 | /* on board I2C0 */ |
Rhyme | 0:ce97f6d34336 | 21 | // #define PIN_I2C0_SCL PTE24 |
Rhyme | 0:ce97f6d34336 | 22 | // #define PIN_I2C0_SDA PTE25 |
Rhyme | 0:ce97f6d34336 | 23 | /* external I2C0 */ |
Rhyme | 0:ce97f6d34336 | 24 | #define PIN_I2C0_SCL PTC8 |
Rhyme | 0:ce97f6d34336 | 25 | #define PIN_I2C0_SDA PTC9 |
Rhyme | 0:ce97f6d34336 | 26 | #define PIN_I2C1_SCL PTE1 |
Rhyme | 0:ce97f6d34336 | 27 | #define PIN_I2C1_SDA PTE0 |
Rhyme | 0:ce97f6d34336 | 28 | #define PIN_AN0 PTB0 |
Rhyme | 0:ce97f6d34336 | 29 | #define PIN_AN1 PTB1 |
Rhyme | 0:ce97f6d34336 | 30 | #define PIN_AN2 PTB2 |
Rhyme | 0:ce97f6d34336 | 31 | #define PIN_LED_R PTA5 |
Rhyme | 0:ce97f6d34336 | 32 | #define PIN_LED_G PTA4 |
Rhyme | 0:ce97f6d34336 | 33 | #define PIN_LED_B PTA12 |
Rhyme | 0:ce97f6d34336 | 34 | #define PIN_PRESS_EN PTC5 |
Rhyme | 0:ce97f6d34336 | 35 | #endif /* TARGET_KL25Z */ |
Rhyme | 0:ce97f6d34336 | 36 | |
Rhyme | 0:ce97f6d34336 | 37 | #endif /* _EDGE_PIN_H_ */ |