Comments (4)
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.
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:
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.
Basic C syntax mistake, "-" is for subtracting, always use "_”.
LCD-CS means "LCD minus CS".
from st7789-stm32-ugui.
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)
- Draw image without window
- Unreliable SPI write. HOT 3
- ST7789_demo_f407ve failed compilation HOT 1
- Display Fill doesn't work correctly on different display sizes HOT 2
- 建议添加显示中文 HOT 1
- 添加中文问题 HOT 1
- UG_DrawRoundFrame and UG_FillRoundFrame do rounded corners differently HOT 5
- Blank Screen on the F411CE demo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from st7789-stm32-ugui.