Git Product home page Git Product logo

Comments (5)

mnishiguchi avatar mnishiguchi commented on August 30, 2024

It seems like possibly all it takes is flipping the negative/positive sign.

Screen Shot 2021-11-08 at 8 53 05 AM

from inky.

nyaray avatar nyaray commented on August 30, 2024

Flipping the rotation shouldn't do anything with your display, the default rotation is 0, I'm not sure why you're seeing a flipped rotation have an effect.

Have you verified that they have not drawn upside down pictures in their product photos? I'm wondering if this is an issue for us or not, since someone working with the pimoroni code will be working in another language anyway.

from inky.

mnishiguchi avatar mnishiguchi commented on August 30, 2024

Honestly, I do not know what is going on, but I am just following the manufacturer's examples code and the same logic did not work. It is not side effect. The two libraries interpret coordinates differently and I was confused as a Display beginner.

Yeah if we see this library just different, then the user just needs to get used to it. It is more about a decision than an issue. I personally resolved this by the - in my fork (so I am happy 😄 ) but for the library it depends on what is required.

https://learn.pimoroni.com/article/getting-started-with-inky-phat
https://github.com/pimoroni/inky/blob/master/examples/name-badge.py

from inky.

nyaray avatar nyaray commented on August 30, 2024

Honestly, I do not know what is going on, but I am just following the manufacturer's examples code and the same logic did not work. It is not side effect. The two libraries interpret coordinates differently and I was confused as a Display beginner.

Hm, I think I found that your SSD1608 implementation defaults to 90 degrees, which also makes it clear why there wasn't a problem with the width/height vs rows/cols I commented about earlier. Two wrongs made a right, unless I'm having a brain fart moment, hehe.

Yeah if we see this library just different, then the user just needs to get used to it. It is more about a decision than an issue. I personally resolved this by the - in my fork (so I am happy smile ) but for the library it depends on what is required.

https://learn.pimoroni.com/article/getting-started-with-inky-phat https://github.com/pimoroni/inky/blob/master/examples/name-badge.py

Yeah, it's worth thinking about what the default orientation should be. @lawik do you remember if we talked about this? I kind of remember that "default is whatever the hardware says" was a comment made at some point, but this issue points out why that might be an issue. Worth thinking about a bit, I guess!

from inky.

mnishiguchi avatar mnishiguchi commented on August 30, 2024

@lawik Here is my livebook notebook I used for the name badge example. It is my current best based on all the techniques I learned from your Youtube video. https://gist.github.com/mnishiguchi/7acf189376a4c5ffa184c39372cafbf4

from inky.

Related Issues (20)

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.