Code Monkey home page Code Monkey logo

microview_pins's People

Contributors

galaktor avatar

Watchers

 avatar  avatar  avatar

Forkers

maganj3m

microview_pins's Issues

Use internal pullup resistor on AVR chip

Newer Arduino supports INPUT_PULLUP mode, but older can use the AVR pullups via setting mode to INPUT and writing HIGH to the pin.

Old way

pinMode(1, INPUT);
digitalWrite(1, HIGH); // write, even if in INPUT mode; activates pullup

New way

pinMode(1, INPUT_PULLUP);

The type of resistor will depend on the AVR chip, check with the MicroView spec which resistors it has.

Reading values will have to be inverted to maintain current "fill == has value" logic; because using pullup will invert read values, i.e. it becomes active-low.

Seems like a useful thing to do by default.

Increase input resolution

50 millis was a random first start, but there's no reason why it can't be much smaller, say single digit millis.

Draw pin text only once

Only the pin states (=boxes) need updating inside "loop()". Text can all be drawn once inside "setup()".

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.