AndreiDegtiarev / AWind

Arduino window library for TFT and OLED displays

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWind library

Introduction

AWind (arduino window) is Arduino-library that is intended to simplify the use of touch TFT and OLED displays for visualization of sensors data in text or chart form. It is also possible to interact with GUI by the use of display touch feature. The library is implemented as general window framework that allows creation of simple GUIs. The GUI is consist of labels, text fields, buttons, tab control, gauges, chart window and etc. For TFT the special keyboard window is implemented to provide runtime possibility of changing text fields. At this moment TFT and OLED displays are tested on Arduiono Mega and Arduino DUE. ESPxx boards are coming soon.

Installation

TFT via UTFT library

OLED via Adafruit-GFX library

Uncompress those libraries into arduinosketchfolder/libraries/ folder

To connect display see descriptions for corresponding hardware and libraries .

The content of awind_full.zip from https://github.com/AndreiDegtiarev/AWind/releases uncompress into arduinosketchfolder/libraries/ folder.

Restart the IDE

Documentation

API documentation: http://andreidegtiarev.github.io/AWind/

Examples

TFT

In the each example folder there is a screen-shots to demonstrate how results should looks like

  • Text: Simple example that demonstrate the basic use of text window + touch interaction
  • Charts: Simple example that demonstrate the basic use of chart window

  • Oscilloscope: Simple Oscilloscope with possibility to adjust (in runtime) sample ratio, voltage level and signal length

  • SensorsMonitor: This example is based on my personal application - monitor temperature in my camper (outside, inside, fridge: beer has to be cold :-) and etc.). The sensors in this example work in DEMO-mode and real sensors connections is not needed

  • Gauges: This example demonstrates how to use gauge and button controls

  • Dialogs: This example demonstrates how handle nested dialogs

  • Tab control: This example demonstrates how to work with tab controls

  • Vacuum Pump: This advance example demonstrates how to work with tab controls, timer, how interact with stepper motor, relay and etc.

  • Window selector: This example demonstrates how to control child window visibility

OLED

About

Arduino window library for TFT and OLED displays

License:Apache License 2.0


Languages

Language:C++ 91.3%Language:C 8.7%