Git Product home page Git Product logo

st7789-stm32-ugui's People

Contributors

deividalfa avatar floyd-fish avatar jasonlrh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

st7789-stm32-ugui's Issues

Blank Screen on the F411CE demo

Hi! I've been trying to get this ST7789 1.3" 240x240 TFT screen to work with a Black Pill board (F411CEU6) with no luck. The screen stays blank with the backlight on when I try to run the LCD_Test() function. I've had the same experience with the original Floyd Fish library.
Here's the screen I'm trying to use. It has no CS pin.

I am using the F411 demo on STM32CubeIDE.
I've checked the pin connections quite a few times so I'm reasonably certain that they're correct.
I'm prototyping on a breadboard so I've dropped the SPI frequency to 6.25MHz.
Do you have an idea of what might be going wrong?

Pin namings

I am having some problems regarding the PIN_DEFFINITONs. Mainly the DC and RST pins. I don't know what you meant by "CUBEmx pin names", I've tried defining as PAx and also numbers.
None of this works.
Could you please provide me with a configured LCD.h file? So I can figure out the names?

Here is a part of my current LCD.h setup:

/* Pin connections. Use same names as in CubeMX */
#define LCD_DC 11
#define LCD_RST	12
//#define LCD_CS                LCD_CS  
//#define LCD_BL              LCD_BL

EDIT
I've managed to advance by using this:

/* Pin connections. Use same names as in CubeMX */
#define LCD_DC GPIO_PIN_11
#define LCD_RST	GPIO_PIN_12
//#define LCD_CS                LCD_CS  /* Disable if your display has no CS pin */
//#define LCD_BL              LCD_BL  /* Enable if you need backlight control */

But it still does not compile correctly. What am I missing?

This is the error message that I am getting:
expected ')' before '_GPIO_Port'

Unreliable SPI write.

Sorry if this isn't really an issue of the lib, I am just unsure what could this be caused.

So, I am having a problem with data writes to the ST7789. I have a 1.3inch 240*240 display.
My issue is, that the display in unreliable.

What am I trying to achieve?
I've created a simple sketch for red, green and blue screen.
What do I expect to happen?
I expect that the display will fill up with colors RED, GREEN and BLUE in this order with a delay in between.
What is happening?
After uploading the sketch via ST-Link V2 (yes, the china knockoff one) only 10% of a time display even shows the RED color. 90% of a time it just stays black.

IF, the displays shows the RED color, it never continues to the GREEN, 5% of a time there is BLUE.
Sometimes it shows the RED color and then resets (Goes black from red) for no reason, after delays that I've implemented.

What I've tried to do, to solve this?

  • Turning down the baud rate on the SPI (from 21MBit/s to 10.5MBit/s) - no improvement
  • Turning off the DMA - no improvement
  • Changing the DC and RST pins - no improvement
  • Running LCD_Init() before every display write - This was the only time that I was able to show all 3 colors on the display
  • Measured the resistance of my DUPON cables - all good 0 Ohms in resistance

Could you please point me into the right direction on this? I am unsure on why this happens, I was not able to replicate any of this on purpose. Could it possibly be some brownout caused by feeding the display directly from the 3V3 of my blackbill?

Thanks in advance. Sorry for the long post.

EDIT:
Sorry if any of these points just screams incompetence, I am very new to CUBE-IDE. So please have some mercy 😄

ST7789_demo_f407ve failed compilation

I just tested the compilation of the 3 demos. Both the ST7789_demo_f103c8 and ST7789_demo_f411ce built without problems. However, ST7789_demo_f407ve presented this warning:

image

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.