![](/media/cache/group/1711.jpg.50x50_q85.jpg)
Added a GPIO to power on/off for external I2C sensor(s) (with LEDs)
Dependencies: UniGraphic mbed vt100
18-Jun-2018 外部センサの電源オン・オフ機能は下位互換の為に無効になっていました。 この版で再度有効にしました。
edge_utils/edge_pin.h@0:846e2321c637, 2018-04-13 (annotated)
- Committer:
- Rhyme
- Date:
- Fri Apr 13 04:19:23 2018 +0000
- Revision:
- 0:846e2321c637
power to color sensor on/off test OK. Currently the function is disabled.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Rhyme | 0:846e2321c637 | 1 | #ifndef _EDGE_PIN_H_ |
Rhyme | 0:846e2321c637 | 2 | #define _EDGE_PIN_H_ |
Rhyme | 0:846e2321c637 | 3 | |
Rhyme | 0:846e2321c637 | 4 | #if defined (TARGET_KL25Z) |
Rhyme | 0:846e2321c637 | 5 | #define PIN_INTR PTD4 |
Rhyme | 0:846e2321c637 | 6 | #define PIN_ASR_RESET PTA13 |
Rhyme | 0:846e2321c637 | 7 | #define PIN_SCK PTD1 |
Rhyme | 0:846e2321c637 | 8 | #define PIN_MOSI PTD2 |
Rhyme | 0:846e2321c637 | 9 | #define PIN_MISO PTD3 |
Rhyme | 0:846e2321c637 | 10 | #define PIN_CS PTD0 |
Rhyme | 0:846e2321c637 | 11 | /* ILI9341 */ |
Rhyme | 0:846e2321c637 | 12 | #define PIN_CS_TFT PTC7 |
Rhyme | 0:846e2321c637 | 13 | #define PIN_RESET_TFT PTC4 |
Rhyme | 0:846e2321c637 | 14 | #define PIN_DC_TFT PTC0 |
Rhyme | 0:846e2321c637 | 15 | #define PIN_BL_TFT PTC3 |
Rhyme | 0:846e2321c637 | 16 | |
Rhyme | 0:846e2321c637 | 17 | #define PIN_FRDM_LEDR PTB18 |
Rhyme | 0:846e2321c637 | 18 | #define PIN_FRDM_LEDG PTB19 |
Rhyme | 0:846e2321c637 | 19 | #define PIN_FRDM_LEDB PTD1 /* conflict with SCK orz */ |
Rhyme | 0:846e2321c637 | 20 | /* on board I2C0 */ |
Rhyme | 0:846e2321c637 | 21 | // #define PIN_I2C0_SCL PTE24 |
Rhyme | 0:846e2321c637 | 22 | // #define PIN_I2C0_SDA PTE25 |
Rhyme | 0:846e2321c637 | 23 | /* external I2C0 */ |
Rhyme | 0:846e2321c637 | 24 | #define PIN_I2C0_SCL PTC8 |
Rhyme | 0:846e2321c637 | 25 | #define PIN_I2C0_SDA PTC9 |
Rhyme | 0:846e2321c637 | 26 | #define PIN_I2C1_SCL PTE1 |
Rhyme | 0:846e2321c637 | 27 | #define PIN_I2C1_SDA PTE0 |
Rhyme | 0:846e2321c637 | 28 | #define PIN_AN0 PTB0 |
Rhyme | 0:846e2321c637 | 29 | #define PIN_AN1 PTB1 |
Rhyme | 0:846e2321c637 | 30 | #define PIN_AN2 PTB2 |
Rhyme | 0:846e2321c637 | 31 | #define PIN_LED_R PTA5 |
Rhyme | 0:846e2321c637 | 32 | #define PIN_LED_G PTA4 |
Rhyme | 0:846e2321c637 | 33 | #define PIN_LED_B PTA12 |
Rhyme | 0:846e2321c637 | 34 | #define PIN_PRESS_EN PTC5 |
Rhyme | 0:846e2321c637 | 35 | #define PIN_COLOR_EN PTC6 |
Rhyme | 0:846e2321c637 | 36 | #endif /* TARGET_KL25Z */ |
Rhyme | 0:846e2321c637 | 37 | |
Rhyme | 0:846e2321c637 | 38 | #endif /* _EDGE_PIN_H_ */ |