Coder Social home page Coder Social logo

standingdeskos's People

Contributors

ls42 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

pandelisz

standingdeskos's Issues

Use event handlers

Fix the loop and try register an event handler, if the PyBoard-API allows it. So we need to look for an event that is fired when the screen is touched.

Package for the distance sensor

Figure out the initialisation of the distance sensor, write a class for it with some useful methods. get_height comes to mind.

Basic drawing, touch handling and sensor reading

Step 1

  • Draw two line, who split the bottom in two fields; Those are the up and down buttons (maybe draw arrows in the them or something)
  • The top half of the display is used to display the area the finger has pressed the screen

This already requires proper drawing, touch handling and callbacks.

Step 2

The next step is reading the sensor. When pressing one of the buttons, in addition to writing the coordinates of the press, also read the sensor and write the result too.

This should result in the required libraries for handling the sensor data (see #2) and drawing the the UI to the display (which is #1)

Library for the UI

Create a lib that

  • Can draw UI elements
  • Is easy to use
  • Initializes the display correctly for the device (accept device parameter)

Dim screen

Similar to #5. When idling for some time dim the screen. After a few more seconds turn the display off. At least turn off the background light. When the screen is touched, turn it on again.

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.