Giter Club home page Giter Club logo

Comments (4)

blazer82 avatar blazer82 commented on July 22, 2024

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.

bcorwen avatar bcorwen commented on July 22, 2024

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 avatar bcorwen commented on July 22, 2024

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.

blazer82 avatar blazer82 commented on July 22, 2024

@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 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.