Added SPI speed parameter
Dependents: EasyCAT_LAB_simple EasyCAT_LAB
- The default SPI speed has been set to 27MHz, but it can be configured using the last parameter of the constructor.
- This is an optimization for the EasyCAT LAB , a complete educational and experimental EtherCAT® system, composed of one master and two slaves .
Diff: SPI_TFT_ILI9341.h
- Revision:
- 9:2e5c5943b3fd
- Parent:
- 8:32bf76e1ec9f
- Child:
- 12:1cf4e83eb240
--- a/SPI_TFT_ILI9341.h Thu Mar 20 15:29:19 2014 +0000 +++ b/SPI_TFT_ILI9341.h Tue Jun 11 09:59:18 2019 +0000 @@ -89,9 +89,10 @@ * @param cs pin connected to CS of display * @param reset pin connected to RESET of display * @param dc pin connected to WR of display + * @param spiSpeed SPI Clock Frequency in Hz * the IM pins have to be set to 1110 (3-0) */ - SPI_TFT_ILI9341(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName reset, PinName dc, const char* name ="TFT"); + SPI_TFT_ILI9341(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName reset, PinName dc, int spiSpeed = 27000000, const char* name ="TFT"); /** Get the width of the screen in pixel * @@ -324,8 +325,9 @@ /** Init the HX8347D controller * + * @param spiSpeed SPI Clock Frequency in Hz */ - void tft_reset(); + void tft_reset(int spiSpeed); /** Write data to the LCD controller *