Comments (4)
Hey @bcorwen, very cool that you built your own! 😃
I'm sorry to hear that you ran into issues, though. To me there's no known problem with drawing rectangles. I'm not sure what's happening here. If you just replace the drawCircle
call with that drawRect
call I'd expect it to work properly.
I also think it's pretty unlikely that it's an issue with the chip or the hardware in general since other examples seem to work just fine... 🤔
from ft81x_arduino_driver.
I've found the problem after a little trial and error. Sharing in case it helps others.
In my example, I was using the following parameters:
ft81x.drawRect(20,20,4,4,0,FT81x_COLOR_RGB(255, 0, 0));
I assumed corner size should be 0 for a perfect rectangle with sharp corners.
However I should be using a value of 1, as this draws rectangles successfully without any soft corners.
Simple mistake to make. I'm just glad it's all working!
Thanks again for your library and board design!
from ft81x_arduino_driver.
I've found the problem after a little trial and error. Sharing in case it helps others.
In my example, I was using the following parameters:
ft81x.drawRect(20,20,4,4,0,FT81x_COLOR_RGB(255, 0, 0));
I assumed corner size should be 0 for a perfect rectangle with sharp corners.
However I should be using a value of 1, as this draws rectangles successfully without any soft corners.
Simple mistake to make. I'm just glad it's all working!
Thanks again for your library and board design!
from ft81x_arduino_driver.
@bcorwen very happy that you've figured it out, and thanks for sharing the solution!
from ft81x_arduino_driver.
Related Issues (7)
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 ft81x_arduino_driver.