Giter VIP home page Giter VIP logo

textdisplay's Introduction

TextDisplay

a text display driver framework

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Supported Displays: HD44780 powered display (4Bit mode only) over GPIO - driverType="HD44780GpioDriver"

Usage:

  1. Either build/add the Windows Runtime Component as a binary reference to your solution of add the TextDisplayManager project to you solution.
  2. Edit the "screens.config" file to match your setup.
  3. Call: var displays = await TextDisplayManager.GetDisplays();
  4. The 'displays' variable will contain a list of configured displays for the system (as defined in screens.config).
  5. Each display implements the ITextDisplay interface that has the following fucntionality: get Height - Gets the total rows the display has get Width - Gets the total characters each row supports InitializeAsync - Initializes the screen DisposeAsync - Disposes of the screen once its use is complete WriteMessageAsync - Writes a message to the screen (supports \n for new line), timeout indicates how long the message will stay on screen (0 is infinite).

Adding a Driver: Drivers are C# classes that inherit from TextDisplayBase, these drivers must be added as a part of the TextDisplay component to be able to be activated.

screens.config: This xml configuration file describes the screens that are currently attached to the system. Each Screen element is broken into 2 main elements, CommonConfiguration and DriverConfiguration. CommonConfiguration contians the Heigh and Width of the screen DriverConfiguration contains a XML fragment that is passsed into the driver on initialization Below is an example of a screens.config that has 1 HD44780GpioDriver driven screen:

2 16 18 23 24 5 6 13

textdisplay's People

Contributors

anthony-ngu avatar bethoma avatar bfjelds avatar ooeygui avatar turkycat avatar zfields 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.