Comments (5)
It seems like possibly all it takes is flipping the negative/positive sign.
from inky.
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.
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.
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.
@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)
- GenServerify the main entrypoint, Inky (inky.ex) HOT 5
- Experiment with higher SPI speeds HOT 9
- Consider making the busy waits into aspects of sync/async updates HOT 7
- Add credo check to CI
- Replace custom mock hackery with Mox HOT 2
- Add a convenient way to get display info by type HOT 2
- Allow setting an optional rotation
- Implement a post-push signal that can be requested by callers of `set_pixels` HOT 2
- Host dev library should handle border
- Not working with wHAT display HOT 17
- Update commands to be in line with current Python Inky HOT 3
- Clean up IO tests to use hex or constants in comparisons HOT 4
- Use constants or something elegant for all the magic numbers HOT 3
- Version 1.0.1 cannot compile on Elixir 1.10 HOT 3
- Support the Inky Impression HOT 10
- Dev-mode display using wx? HOT 12
- set border color at creation and after creation HOT 3
- should we support the red high temperature screen type? HOT 2
- Validate display size on init 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 inky.