Comments (12)
This is a separate library (https://github.com/pappersverk/inky_host_dev). It is working for master branches on inky and inky_host_dev at time of writing. I've tested it using lawik/sample_inky.
It should be published and stuff. I've no idea if it is worthwhile to try writing tests for it considering it mostly does magical wx-things. I'd suggest holding off on that.
So I'll close this and add one about packaging this dep up for hex release along with Inky and the driver.
from inky.
Yes. I think it would. And while there is a point, I don't see it being worthwhile. I've no plans to at this point :)
from inky.
Once the GenServer is implemented, we could:
- extract a behaviour from InkyIO, probably naming that InkyIO
- rename the module InkyIO to InkyGPIO and have it implement the InkyIO behaviour
- add a dev-only option that instructs Inky to use InkyWX instead of InkyIO
My suggestion is that we discuss this further once:
- more tests are in place
- more decoupling has been done after the GenServer is implemented.
from inky.
Sounds good.
from inky.
If we switch our internal representation to use matrices from https://github.com/versilov/matrex we would also be able to visualise the state before writing to the physical screen (see the visualisation examples in the matrex README).
This means that we could turn Commands into a behaviour, minimising the need of trickery required to see what the library believes about the state of the buffer, since it would be even less intertwined with the bit conversion and shovelling parts.
from inky.
That would be cool but it would also mean a dependency and I rather like how limited this project is with deps so far. So I'm a bit split on this :)
from inky.
Will be merged when we've refactored commands a bit: #17
from inky.
Hm. Shouldn't that library become a dev-only dependency of Inky, then, so that you can run stuff locally when working on an Inky-based project?
from inky.
Ah, by default? Possibly. Yeah, that'd work. Would still need to be conditionally hooked in somehow. Probably by the user. Or do you have something more in mind. The lib just provides a HAL-module.
from inky.
Could the Scenic driver take advantage of this somehow? https://github.com/pappersverk/inky/blob/master/lib/inky.ex#L122
from inky.
I'm assuming you mean to render using wx on the host for Inky. Not without significant work to get a cross-platform framebuffer-reading-sort-of-deal from what I know.
Considering we can just provide an instruction for Scenic where you render to glfw instead of our driver, I don't think that's a worthwhile thing to pursue. I see it as a largely solved problem.
The only corners not covered is that the glfw thing might look a bit better than we want with all the fancy shades it has. And I call that good enough.
from inky.
Do you think it would require too much effort to hack in a down-sampler? :D
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
- display orientation upside down HOT 5
- 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.