# COVID19 Emergency Ventilator Based on XOD IDE

**URL:** https://forum.xod.io/t/covid19-emergency-ventilator-based-on-xod-ide/4077
**Category:** Hardware Interfacing Questions
**Created:** [June 6, 2020, 5:21pm UTC](https://forum.xod.io/t/covid19-emergency-ventilator-based-on-xod-ide/4077 "2020-06-06T17:21:20Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![wayland](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/wayland/32/1590_2.png) [@wayland](https://forum.xod.io/u/wayland)
#### Post date: [June 8, 2020, 2:31am UTC](https://forum.xod.io/t/covid19-emergency-ventilator-based-on-xod-ide/4077/4 "2020-06-08T02:31:13Z")

</div>

Hi M Aal,

I’ve created a very basic XOD library for the Nextion:  
[https://xod.io/libs/wayland/nextion/](https://xod.io/libs/wayland/nextion/)

Here’s a quick demo:

[![](https://img.youtube.com/vi/ZOmIGQmNmjI/maxresdefault.jpg "XOD - Nextion") ](https://www.youtube.com/watch?v=ZOmIGQmNmjI)

The demo is included in the library as the **example** patch and should be used with the following Nextion GUI file: [https://github.com/WaylandM/xod-nextion/raw/master/hmi/xod-demo-1.HMI](https://github.com/WaylandM/xod-nextion/raw/master/hmi/xod-demo-1.HMI)

My library wraps Athanasios Seitanis’s Easy Nextion Library ([GitHub - Seithan/EasyNextionLibrary: A simple library for Nextion display that uses only four functions. You can easily benefit from Nextion's wide range of features and advantages in just a few easy steps. The library uses a custom protocol that can prove to be a powerful tool for advanced users as it can be easily modified to meet one’s needs.](https://github.com/Seithan/EasyNextionLibrary)) and is a work in progress. There are methods in the Easy Nextion Library that do not yet have equivalent nodes in my XOD library. At present my library allows you to read and write numeric attributes of the objects on the Nextion display.

I tested my library on an Arduino Mega. I used **Serial1** (pins 18 and 19) to communicate with the Nextion, so that **Serial** (pins 0 and 1) was available for debugging.

Please let me know if you have any questions.

---

_[View the full topic](https://forum.xod.io/t/covid19-emergency-ventilator-based-on-xod-ide/4077)._
