Search found 106 matches

by david.prentice
Mon Jul 24, 2017 1:07 pm
Forum: Libraries & Hardware
Topic: STM32F103C8 & TFT (ili9325)
Replies: 193
Views: 13059

Re: STM32F103C8 & TFT (ili9325)

If you want the fastest rendering of a BMP from SD card: 1. pre-process the BMP files into RAW data e.g. like UTFT utility. 2. set a rectangular window with the correct dimensions. 3. read the raw pixel data from SD with a DMA version of SD.h library. 4. blit the pixel data to the screen. e.g. with ...
by david.prentice
Sat Jul 22, 2017 2:22 pm
Forum: Libraries & Hardware
Topic: Use STM32F103C8 with TFT 320QVT 9341
Replies: 20
Views: 482

Re: Use STM32F103C8 with TFT 320QVT 9341

My apologies. I was replying to empirejrz with a Discovery-F303 I should have replied to vincent47 with a F401RE. Both posters asked about the TFT 320QVT_9341 The same comment applies. Is there a Core for F401RE ? If there is an "official" Core, I will post a SPECIAL. If your questions do not apply ...
by david.prentice
Sat Jul 22, 2017 12:06 pm
Forum: Libraries & Hardware
Topic: Use STM32F103C8 with TFT 320QVT 9341
Replies: 20
Views: 482

Re: Use STM32F103C8 with TFT 320QVT 9341

As far as I know, the TFT320QVT_9341 is only 16-bit. If you can configure for 8-bit life would be a lot easier. There is nothing very complicated with driving an ILI9341. There will be several libraries. The problem comes with "choosing" the wiring. I suggest that you just use whatever wiring the ex...
by david.prentice
Fri Jul 21, 2017 9:38 pm
Forum: Libraries & Hardware
Topic: STM32F103C8 & TFT (ili9325)
Replies: 193
Views: 13059

Re: STM32F103C8 & TFT (ili9325)

You have a regular Uno Shield. Plug it into a Uno. Install MCUFRIEND_kbv with the Library Manager. Run the examples. You will see what "SOFTWARE SCROLL" does on the Uno. The YELLOW text moves across the screen. There should not be any BLUE at all. I am sure that Steve's library will work just fine o...
by david.prentice
Fri Jul 21, 2017 3:38 pm
Forum: Libraries & Hardware
Topic: STM32F103C8 & TFT (ili9325)
Replies: 193
Views: 13059

Re: STM32F103C8 & TFT (ili9325)

I installed Steve's library and modified for my GPIO usage. Steve's library only works with the Maple Core. Not with the ST Core. Anyway, Steve's library code for pushColors() and setWindow() looks absolutely fine. Here is a test sketch to prove it (tested on a BluePill): #include <Adafruit_GFX.h> /...
by david.prentice
Thu Jul 20, 2017 11:11 pm
Forum: Libraries & Hardware
Topic: STM32F103C8 & TFT (ili9325)
Replies: 193
Views: 13059

Re: STM32F103C8 & TFT (ili9325)

Adafruit_TFTLCD_STM is not installed with the Core. And is not available from the Library Manager. Post a link to the actual library you are using. And either say which example you are using or attach your actual showBMP sketch. The regular Adafruit graphicstest sketch does not test the pushColors()...
by david.prentice
Thu Jul 20, 2017 7:59 pm
Forum: Libraries & Hardware
Topic: STM32F103C8 & TFT (ili9325)
Replies: 193
Views: 13059

Re: STM32F103C8 & TFT (ili9325)

I would start with a bit of honesty. i.e. do you have a 240x320 ILI9325 or a 240x400 ILI9326. Your photo does look like a 240x320. You did say the ID was reported as 0x9325 on a Uno. But your earlier message showed LCD_readreg.ino with reg(0) returning 0x9326 on the STM32. It is very straightforward...
by david.prentice
Mon Jul 17, 2017 11:28 am
Forum: Libraries & Hardware
Topic: STM32F103C8 & TFT (ili9325)
Replies: 193
Views: 13059

Re: STM32F103C8 & TFT (ili9325)

I prefer to use the ST core. However it does not initialise PB4 in its init() code. The Maple core does. If MCUFRIEND_kbv is running on the ST core, it enables the PB4 pin. What is a complete mystery: the Shield returns ID = 0x9325 on a Uno and ID = 0x9326 on MapleMini. The ILI9326 is a 240x400 with...
by david.prentice
Mon Jul 17, 2017 8:56 am
Forum: Libraries & Hardware
Topic: STM32F103C8 & TFT (ili9325)
Replies: 193
Views: 13059

Re: STM32F103C8 & TFT (ili9325)

The MCUFRIEND_kbv library is designed for 8-bit Shields. I know that LCD_RD is plugged into Analog #0 pin. Hence my list of #defines in the Readreg sketch. What panel do you have? is it a Mcufriend Uno Shield? Or is it a 16-bit 40-pin module? The Readreg sketch will work with MIPI controllers even i...
by david.prentice
Thu Jul 13, 2017 6:28 am
Forum: Libraries & Hardware
Topic: 3.2" HX8357B (16Bit) Library for STM32
Replies: 8
Views: 180

Re: 3.2" HX8357B (16Bit) Library for STM32

I am horrified by 4-5 months delivery from AliExpress. Surely it is wiser to pay a local price for better delivery. In the UK, it takes 10-20 days for Ebay. Ali would be similar. But some Ali vendors do not even dispatch for several weeks. I can buy many things from European vendors. I pay more but ...