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.cpp
- Revision:
- 8:32bf76e1ec9f
- Parent:
- 7:3ac45671dc77
- Child:
- 9:2e5c5943b3fd
--- a/SPI_TFT_ILI9341.cpp Wed Oct 23 01:34:51 2013 +0000 +++ b/SPI_TFT_ILI9341.cpp Thu Mar 20 15:29:19 2014 +0000 @@ -25,7 +25,7 @@ //extern DigitalOut xx; // debug !! SPI_TFT_ILI9341::SPI_TFT_ILI9341(PinName mosi, PinName miso, PinName sclk, PinName cs, PinName reset, PinName dc, const char *name) - : _spi(mosi, miso, sclk), _cs(cs), _dc(dc), GraphicsDisplay(name) + : GraphicsDisplay(name), _spi(mosi, miso, sclk), _cs(cs), _dc(dc) { orientation = 0; char_x = 0; @@ -691,7 +691,7 @@ // local filesystem is not implemented in kinetis board -#ifndef TARGET_KL25Z +#if DEVICE_LOCALFILESYSTEM int SPI_TFT_ILI9341::BMP_16(unsigned int x, unsigned int y, const char *Name_BMP) {