Giter Club home page Giter Club logo

sdl_esp8266_am2315's Introduction

  SwitchDoc Labs Modifications for ESP8266  
  This is a library for the AM2315 Humidity & Temp Sensor
  www.switchdoc.com

  This works for both the SwitchDoc Labs AM2315 and the Adafruit AM2315

  Note:  There are ESP8266-12 modules that have pins 4 and 5 reversed.   The one we are testing has these lines reversed, hence the statement:

  Wire.begin(5,4);

  If you have the lines in your ESP8266 correct, then change this to Wire.begin(4,5)

This is a library for the AM2315 Humidity + Temp sensor

Designed specifically to work with the AM2315 in the Adafruit shop 
  ----> https://www.adafruit.com/products/1293

These displays use I2C to communicate, 2 pins are required to interface
Adafruit invests time and resources providing this open source code, 
please support Adafruit and open-source hardware by purchasing 
products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries.  
BSD license, all text above must be included in any redistribution

Check out the links above for our tutorials and wiring diagrams 

To download. click the ZIP button in the top-middle navbar, 
rename the uncompressed folder Adafruit_AM2315. 
Check that the Adafruit_AM2315 folder contains Adafruit_AM2315.cpp and Adafruit_AM2315.h

Place the Adafruit_AM2315 library folder your arduinosketchfolder/libraries/ folder. 
You may need to create the libraries subfolder if its your first library. Restart the IDE.

We also have a great tutorial on Arduino library installation at:
http://learn.adafruit.com/adafruit-all-about-arduino-libraries-install-use

sdl_esp8266_am2315's People

Contributors

projectcuracao avatar

Stargazers

Venkatesh avatar

Watchers

SwitchDoc Labs avatar

Forkers

bonjour81

sdl_esp8266_am2315's Issues

Small bug in the example

In the example, there is an extra '}' at the end.

void loop() {
  Serial.print("Hum: "); Serial.println(am2315.readHumidity());`
  Serial.print("Temp: "); Serial.println(am2315.readTemperature());

  delay(1000);
}}

The last '}' seems to be extra (and gives me an error).
The extra '}' was also found in the original Adafruit AM2315 repository a while ago and fixed there.

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.