GithubHelp home page GithubHelp logo

el-fuego / arduino-progmem-menu Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 34 KB

Small arduino menu, what used program memory to store data.

License: MIT License

C 22.99% C++ 77.01%
arduino menu small progmem lcd joystick number field submenu nested rom library arduino-menu

arduino-progmem-menu's Introduction

Arduino-progmem-menu

Small arduino menu, what used program memory to store data.

  • Supersmall RAM usage (for behaviour only)
  • Intuitive menu configs
  • Nested submenus
  • Number and text fields editing
  • Number formatting
  • Custom actions
  • Input and output devices
  • Base classes to create your own behaviour

Demo

How it works

Or 16x2 display:




Start coding

int firstAreaSqure = 124;
int secondAreaSqure = 546;
char text[] = "abc324";

void turnLedOn() {
  digitalWrite(LED_BUILTIN, HIGH);
}

MENU(squareArea, "Area sett.", (Menu::MENU_STYLE::NAME_HIDDEN_FOR_CHILD_LIST | Menu::MENU_STYLE::HORIZONTAL_CHILD_LIST)
  ,NUMBER_FIELD(firstAreaSqureMenu, "from ", firstAreaSqure, Menu::to3Digits, " m^2", 0, 1000, 10)
  ,NUMBER_FIELD(secondAreaSqureMenu, "to ", secondAreaSqure, Menu::to3Digits, " m^2", 0, 1000, 1)
);

MENU(test, "My Settings", (0 | Menu::MENU_STYLE::NAME_HIDDEN_FOR_CHILD_LIST)
  ,SUBMENU(squareArea)
  ,TEXT_FIELD(testField, "Text Field '", text, "'")
  ,ACTION(turnLedOn, "Turn LED ON", turnLedOn)
);

Ready to start? see full examples

arduino-progmem-menu's People

Contributors

el-fuego avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

cnc4less

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.