Caiou
Dependents: LCD_Proj LCD_imagetest LCD_Proj_rtc
Fork of DmTftLibrary by
Diff: DmTftRa8875.h
- Revision:
- 14:2db7065edbec
- Parent:
- 11:264e19992620
--- a/DmTftRa8875.h Fri Sep 18 14:59:13 2015 +0000 +++ b/DmTftRa8875.h Mon Oct 12 08:35:35 2015 +0000 @@ -26,7 +26,7 @@ #if defined (DM_TOOLCHAIN_ARDUINO) DmTftRa8875(uint8_t cs=D10, uint8_t sel=D9); #elif defined (DM_TOOLCHAIN_MBED) - DmTftRa8875(uint8_t cs=D10, uint8_t sel=D9, uint8_t miso=D12, uint8_t mosi=D11, uint8_t clk=D13); + DmTftRa8875(PinName cs, PinName sel, PinName mosi, PinName miso, PinName clk); #endif virtual ~DmTftRa8875(); virtual void init(); @@ -99,15 +99,16 @@ uint16_t _fgColor; enum RA8875Size _size; + +#if defined (DM_TOOLCHAIN_ARDUINO) uint8_t _cs, _sel; -#if defined (DM_TOOLCHAIN_ARDUINO) regtype *_pinSEL; regsize _bitmaskSEL; uint8_t _spiSettings; #elif defined (DM_TOOLCHAIN_MBED) - uint8_t _miso, _mosi, _clk; + PinName _cs, _sel; DigitalOut *_pinSEL; - SPI *_spi; + SPI spi; #endif };