Added SPI burst mode to spi 8 bit.

Dependents:   Bicycl_Computer_NUCLEO-F411RE Bicycl_Computer_NUCLEO-L476RG

Fork of UniGraphic by GraphicsDisplay

Added SPI burst mode to this graphics driver. If whoever wants this rolled in to repository let me know. I replaced _spi.write(); with fastWrite(); and clearRX();

SPI8.cpp

// need to re-create SPI firmware to access SPI handle
static SPI_HandleTypeDef SpiHandle;

void SPI8::fastWrite(int data) {
    
      SpiHandle.Instance = SPI1;
    // Check if data is transmitted
    while ((SpiHandle.Instance->SR & SPI_SR_TXE) == 0);
    SpiHandle.Instance->DR = data;
}
    
void SPI8::clearRX( void ) {
        SpiHandle.Instance = SPI1;
    //Check if the RX buffer is busy
    //While busy, keep checking
    while (SpiHandle.Instance->SR & SPI_SR_BSY){   
        // Check RX buffer readable
        while ((SpiHandle.Instance->SR & SPI_SR_RXNE) == 0);
        int dummy = SpiHandle.Instance->DR;
    }
}      

History

Added Gimp Graphic Display Routine for Compass default tip

2017-08-04, by trevieze [Fri, 04 Aug 2017 19:47:21 +0000] rev 36

Added Gimp Graphic Display Routine for Compass


No Changes

2017-07-20, by trevieze [Thu, 20 Jul 2017 19:32:58 +0000] rev 35

No Changes


Burst for 8 bit spi.

2017-04-28, by trevieze [Fri, 28 Apr 2017 01:45:26 +0000] rev 34

Burst for 8 bit spi.


Added SPI burst mode to SPI 8 bit.

2017-04-12, by trevieze [Wed, 12 Apr 2017 20:18:25 +0000] rev 33

Added SPI burst mode to SPI 8 bit.


If char is not in font, print blank.; Useful if you have a number only font and want to format output.

2016-05-02, by dreschpe [Mon, 02 May 2016 22:44:05 +0000] rev 32

If char is not in font, print blank.; Useful if you have a number only font and want to format output.


The width and height of SEPS225 are 0x80, but I mistook it to 0x7F in the first version and have fixed them in later version, but in the newest version we had the return of 0x7F, so I try to fix them to 0x80 again.

2016-04-01, by Rhyme [Fri, 01 Apr 2016 06:00:02 +0000] rev 31

The width and height of SEPS225 are 0x80, but I mistook it to 0x7F in the first version and have fixed them in later version, but in the newest version we had the return of 0x7F, so I try to fix them to 0x80 again.


Add ILI9320 init to ILI932x

2015-11-29, by Geremia [Sun, 29 Nov 2015 19:58:47 +0000] rev 30

Add ILI9320 init to ILI932x


Add ILI9327 and S6D04D1 (240x400 displays)

2015-11-28, by Geremia [Sat, 28 Nov 2015 18:37:19 +0000] rev 29

Add ILI9327 and S6D04D1 (240x400 displays)


fix ILI932x spi

2015-11-28, by Geremia [Sat, 28 Nov 2015 17:54:09 +0000] rev 28

fix ILI932x spi


fix handling of PAR8 / PAR16 includes

2015-10-26, by dreschpe [Mon, 26 Oct 2015 12:49:02 +0000] rev 27

fix handling of PAR8 / PAR16 includes