Giter Club home page Giter Club logo

Comments (6)

moononournation avatar moononournation commented on July 20, 2024

I have not yet tried STM32F411, did it works well on PDQgraphicstest example? Can you share the figures?

from arduino_gfx.

JonRobo avatar JonRobo commented on July 20, 2024

I changed the board to STM32F411CEU Blackpill and kept the example unchanged.

These are the errors.

Arduino: 1.8.12 (Windows 10), Board: "Generic STM32F4 series, BlackPill F411CE, STM32CubeProgrammer (DFU), Enabled (generic 'Serial'), None, Low/Full Speed, Smallest (-Os default), Newlib Nano (default)"

C:\Users\Jonathan\Documents\Arduino\libraries\GFX_Library_for_Arduino\src\Arduino_DataBus.cpp:82:6: error: no declaration matches 'void Arduino_DataBus::writeIndexedPixels(uint8_t*, uint16_t*, uint32_t)'
82 | void Arduino_DataBus::writeIndexedPixels(uint8_t data, uint16_t idx, uint32_t len)
| ^~~~~~~~~~~~~~~
C:\Users\Jonathan\Documents\Arduino\libraries\GFX_Library_for_Arduino\src\Arduino_DataBus.cpp:82:6: note: no functions named 'void Arduino_DataBus::writeIndexedPixels(uint8_t
, uint16_t
, uint32_t)'
In file included from C:\Users\Jonathan\Documents\Arduino\libraries\GFX_Library_for_Arduino\src\Arduino_DataBus.cpp:5:
C:\Users\Jonathan\Documents\Arduino\libraries\GFX_Library_for_Arduino\src\Arduino_DataBus.h:60:7: note: 'class Arduino_DataBus' defined here
60 | class Arduino_DataBus
| ^~~~~~~~~~~~~~~
C:\Users\Jonathan\Documents\Arduino\libraries\GFX_Library_for_Arduino\src\Arduino_DataBus.cpp:90:6: error: no declaration matches 'void Arduino_DataBus::writeIndexedPixelsDouble(uint8_t*, uint16_t*, uint32_t)'
90 | void Arduino_DataBus::writeIndexedPixelsDouble(uint8_t data, uint16_t idx, uint32_t len)
| ^~~~~~~~~~~~~~~
C:\Users\Jonathan\Documents\Arduino\libraries\GFX_Library_for_Arduino\src\Arduino_DataBus.cpp:90:6: note: no functions named 'void Arduino_DataBus::writeIndexedPixelsDouble(uint8_t
, uint16_t
, uint32_t)'
In file included from C:\Users\Jonathan\Documents\Arduino\libraries\GFX_Library_for_Arduino\src\Arduino_DataBus.cpp:5:
C:\Users\Jonathan\Documents\Arduino\libraries\GFX_Library_for_Arduino\src\Arduino_DataBus.h:60:7: note: 'class Arduino_DataBus' defined here
60 | class Arduino_DataBus
| ^~~~~~~~~~~~~~~
exit status 1
Error compiling for board Generic STM32F4 series.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
error

from arduino_gfx.

moononournation avatar moononournation commented on July 20, 2024

The above code is under this preprocessor directive:

#if defined(ARDUINO_ARCH_SAMD) || defined(ESP8266) || defined(ESP32)

and should not compiled for STM32F4...

from arduino_gfx.

JonRobo avatar JonRobo commented on July 20, 2024

Right, I noticed this in the source code when trying the GIF example. There are many conditional statements in the source to include certain methods depending on what particular boards is used. I can try to grind through this myself, but I think it would be quite valuable to add support in this library for the STM32F4 chips. They should have enough power to play gifs like the ESP32, and I want to add a micro SD card to my project to store all Gifs/and jpgs. The microcontroller itself can be bought for ~2 USD on Taobao, which makes it a really great option for a product BOM.

from arduino_gfx.

moononournation avatar moononournation commented on July 20, 2024

I have just updated the ImgViewerAnimatedGIF example, please check is it ok now.

from arduino_gfx.

JonRobo avatar JonRobo commented on July 20, 2024

Hello!

The PDQgraphicstest example is now working, the GIF example has trouble with accessing the SD card attached on SPI bus1.
I have yet to find a good example for using the Blackpill with an SD card which is unfortunate. Seems to be a bit more of a struggle compared to other arduino compatible boards.

Thanks for your quick action to improve the library, I'm still blown away at the quality of pictures and gifs I can run on my display (at least with the ESP32 w/DMA, having some speed issues when accessing the GIF from SD)

from arduino_gfx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.