Git Product home page Git Product logo

Comments (4)

deividAlfa avatar deividAlfa commented on September 26, 2024 1

You have not one, but 3 complete working examples, check the ST7789_demo_xxx folders!
These are fully working projects, import any in CubeIDE and you'll see how it's made.

from st7789-stm32-ugui.

Stredoslovak avatar Stredoslovak commented on September 26, 2024

Also, where should I define the GPIO port that I am using?
I've been doing it in a lcd.h file. By adding the GPIOA in front of the _GPIO_Port as follows

#define LCD_PIN(pin, out) ( LCD_CON(pin,GPIOA_GPIO_Port->BSRR) = (out ? LCD_CON(pin,_Pin) : LCD_CON(pin,_Pin)<<16 ))

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

EDIT:
Here are my pin definitions in the CUBE:
image

The custom pin names that you have mentioned in your comment don't work. They are undefined and I don't know what to define them as.

from st7789-stm32-ugui.

deividAlfa avatar deividAlfa commented on September 26, 2024

Basic C syntax mistake, "-" is for subtracting, always use "_”.
LCD-CS means "LCD minus CS".

from st7789-stm32-ugui.

Stredoslovak avatar Stredoslovak commented on September 26, 2024

Basic C syntax mistake, "-" is for subtracting, always use "_”. LCD-CS means "LCD minus CS".

Great, thanks for this, but I've figured that out already. Instead I now have a much bigger problem. It's unrelated to the original topic. So I'll create a new issue.

from st7789-stm32-ugui.

Related Issues (9)

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.