Skip to content

jalr/EE895

Repository files navigation

EE895

Build Status

An Arduino library for the EE895 CO2 sensor manufactured by E+E Elektronik Ges.m.b.H.

Hardware setup

D1 Mini

D1 Mini connections

on WeMos D1 Mini

  • EE895 is supplied with 5V
  • SDA on GPIO 4 / D2, 4k7 Pullup to 3.3V
  • SCL on GPIO 5 / D1, 4k7 Pullup to 3.3V

Development

If you want to contribute to this project please read this section. I've also added some CI tests to ensure

  • run unit tests
  • compile examples
  • ensure Arduino code style is matched
  • keywords.txt are up to date

git hooks

To ease the development, you may install a pre-commit git hook using the following command:

make .git/hooks/pre-commit

Please keep in mind that you should always review the code before executing someone's code you found on the internet ;)

Code style

I've copied Arduino code style configuration to codestyle.conf. You can use astyle to automatically apply these style rules. You can apply the code style by executing the following command:

make codestyle

keywords.txt

If you removed, added or renamed methods, it is necessary to update the keywords.txt file. To automatically do this, you need to have the python package arduinokeywords installed. After doing that, you can run:

make keywords.txt

References