Coder Social home page Coder Social logo

mcurses's Introduction

mcurses

"mcurses" is a minimized version of programming library ncurses which gives GUI like interfaces on text terminal.

The library mcurses was originally written by Frank M. for a number of microcontrollers.

This version runs directly on Arduinos.

The serial driver interfaces are replace by call-back-function so you can hook any In-Output to the library. This looks as follows:

setFunction_putchar(Arduino_putchar); // tell the library which output channel shall be used
setFunction_getchar(Arduino_getchar); // tell the library which input channel shall be used  

Please take a look into the examples to see how it is to be done exactly.

What do you need to use this Library?

You need to install a terminal programm on your computer to visualize the characters sent and received by the serial line of your computer. The Arduino IDE has a build in serial terminal but for this libray the terminal has to emulate the VT220 standard. The Arduino terminal does not to this and therefore you need a separate terminal program.

On Windows you can uses for example

  • PuTTY
  • teraterm

There may be several others but his two I have tested.

On Linux you can use for example

  • minicom ( does not support VT220 but VT102 )

minicom -c on -b 115200 -D /dev/ttyACM0

The parameters have the following meaning

-c on : turn colors on

-b 115200: set baud rate to 115200

-D /dev/ttyACM0: the port to which the Arduino is connected

Hint: minicom can not display all graphics correctly because it supports only VT102 or ANSI and not VT220. Therefore it seems to have some problems with the colors. To solve this, change the terminal type manually to β€˜ansi’. Also it seems to have some issues with the graphical symbols for lines and corners.

Examples

Hex Editor EEPROM Demo

Here is the "hexeditor_demo".

In this picture it is running on an ARDUINO UNO but you can easily include it on any microcontroller as follows:

#include "hexedit.h"

...
static uint16_t    memmoryStartAddress = 0x100;    // ATMEGA RAM start

hexedit (memmoryStartAddress);
...

For detailed information see the "hexeditor_demo" or "hexeditor_eeprom" Arduino sketch in the examples folder.

Temperature Demo

The "temperature_demo" displays bar graphs of a simulated disk storage.

mcurses's People

Contributors

chrismicro avatar combiesgit avatar jantek avatar

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.