GithubHelp home page GithubHelp logo

m5stickc-idf's People

Contributors

pablobacho avatar teuteuguy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

m5stickc-idf's Issues

Concerns about everything being tightly interlocked

As suggested by @teuteuguy on issue #1:

I do have some concerns about how everything is tightly interlocked. Meaning that for example button presses and display backlight in my mind are user-based business logic, and user should be free to disconnect those capabilities.
Wondering if theres a way of simplifying the code to the bare minimum functionalities ?

I understand the concern about the dependencies between "subcomponents". For example, I was hesitant whether making the display backlight functions under m5power or m5display. At the end I went for the most intuitive route, which is having them in m5display (since it is operating on the display, even though it is the power IC that does it). M5StickC is a whole set of components working as a single device and I think this IDF component should leverage that to allow for advanced functionality.

You are referring to the display timeout capability specifically. Using that feature is optional. If a user program does not use buttons at all, there is no point on activating the screen timeout, and yet the user can use the display and turn it on and off at will. Likewise, if a user program does not use the display at all, it can still use buttons freely.

A feature that I plan on implementing is auto-rotation of the screen using the IMU. That will connect those two subcomponents, but it is needed for advanced functionality and simplifying the user program. Then again, user will be able to use the display without the IMU and vice-versa.

I would not go for a bare-bone version of the component, because the point of it is having features to simplify user program. These are features that could be shared/used by many M5Stick-based projects. Hence, I think this is a good place to have them. Their use is not mandatory, but optional.

Paraphrasing you @teuteuguy, the user is free to disconnect those capabilities. Actually they are not even enabled by default. The user has to explicitly enable them to use them in their user-based business logic.

Let's keep discussing this. I would like to have your input.

Unmaintained?

Could you merge the outstanding pull requests? I have some more changes to contribute for ESP-IDF 4.2 as well.

I'd be willing to maintain this project if you no longer have time.

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.