Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/libdriver/jed1xx

JED1XX(JED101, JED103, JED104, JED105, JED106, JED107, JED109, JED110, JED112, JED115, JED116, JED117, JED131, JED138) full function driver library for general MCU and Linux.(VOC, H2, CO, NH3, H2S, C2H5OH, C3H8, CF2CL2, NO2, SMOG, CH2O, CH3COCH3, O3, C6H6)
https://github.com/libdriver/jed1xx

c full-function-driver iic jed101 jed103 jed104 jed105 jed106 jed107 jed109 jed110 jed112 jed115 jed116 jed117 jed131 jed138 linux mcu

Last synced: 13 days ago
JSON representation

JED1XX(JED101, JED103, JED104, JED105, JED106, JED107, JED109, JED110, JED112, JED115, JED116, JED117, JED131, JED138) full function driver library for general MCU and Linux.(VOC, H2, CO, NH3, H2S, C2H5OH, C3H8, CF2CL2, NO2, SMOG, CH2O, CH3COCH3, O3, C6H6)

Awesome Lists containing this project

README

        

[English](/README.md) | [ 简体中文](/README_zh-Hans.md) | [繁體中文](/README_zh-Hant.md) | [日本語](/README_ja.md) | [Deutsch](/README_de.md) | [한국어](/README_ko.md)



## LibDriver JED1XX

[![MISRA](https://img.shields.io/badge/misra-compliant-brightgreen.svg)](/misra/README.md) [![API](https://img.shields.io/badge/api-reference-blue.svg)](https://www.libdriver.com/docs/jed1xx/index.html) [![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](/LICENSE)

Digital gas sensor is a low-power, miniaturized sensor. Combining semiconductor gas sensors with high-performance microprocessors for detecting gas concentrations in the environment. High sensitivity, compact and precise, using I2C digital signal output method, convenient for users to use and debug, greatly shortening the user's design and development cycle. It can be widely applied in many fields such as environmental safety, portable instruments, etc.

LibDriver JED1XX is the full function driver of JED1XX launched by LibDriver.It provides the function of reading data. LibDriver is MISRA compliant.

### Table of Contents

- [Instruction](#Instruction)
- [Install](#Install)
- [Usage](#Usage)
- [example basic](#example-basic)
- [Document](#Document)
- [Contributing](#Contributing)
- [License](#License)
- [Contact Us](#Contact-Us)

### Instruction

/src includes LibDriver JED1XX source files.

/interface includes LibDriver JED1XX IIC platform independent template.

/test includes LibDriver JED1XX driver test code and this code can test the chip necessary function simply.

/example includes LibDriver JED1XX sample code.

/doc includes LibDriver JED1XX offline document.

/datasheet includes JED1XX datasheet.

/project includes the common Linux and MCU development board sample code. All projects use the shell script to debug the driver and the detail instruction can be found in each project's README.md.

/misra includes the LibDriver MISRA code scanning results.

### Install

Reference /interface IIC platform independent template and finish your platform IIC driver.

Add the /src directory, the interface driver for your platform, and your own drivers to your project, if you want to use the default example drivers, add the /example directory to your project.

### Usage

You can refer to the examples in the /example directory to complete your own driver. If you want to use the default programming examples, here's how to use them.

#### example basic

```C
#include "driver_jed1xx_basic.h"

uint8_t res;
uint32_t i;
float ppm;

/* basic init */
res = jed1xx_basic_init(JED1XX_TYPE_101_VOC);
if (res != 0)
{
return 1;
}

...

/* loop */
for (i = 0; i < 3; i++)
{
/* delay 3000ms */
jed1xx_interface_delay_ms(3000);

/* read data */
res = jed1xx_basic_read(&ppm);
if (res != 0)
{
(void)jed1xx_basic_deinit();

return 1;
}

/* output */
jed1xx_interface_debug_print("jed1xx: %d/%d.\n", (uint32_t)(i + 1), (uint32_t)3);
jed1xx_interface_debug_print("jed1xx: output is %0.1fppm.\n", ppm);

...
}

...

/* deinit */
(void)jed1xx_basic_deinit();

return 0;
```

### Document

Online documents: [https://www.libdriver.com/docs/jed1xx/index.html](https://www.libdriver.com/docs/jed1xx/index.html).

Offline documents: /doc/html/index.html.

### Contributing

Please refer to CONTRIBUTING.md.

### License

Copyright (c) 2015 - present LibDriver All rights reserved

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy

of this software and associated documentation files (the "Software"), to deal

in the Software without restriction, including without limitation the rights

to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

copies of the Software, and to permit persons to whom the Software is

furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all

copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR

IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE

AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER

LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,

OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE

SOFTWARE.

### Contact Us

Please send an e-mail to [email protected].