Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
SHT11 Class Reference
Simple library for interfacing with Sensirion SHT11. More...
#include <sht11.h>
Public Member Functions | |
| SHT11 (PinName clkPin, PinName dataPin) | |
| Create a SHT11 object connected to the specified pins. | |
| void | init () |
| Initialise SHT11. | |
Detailed Description
Simple library for interfacing with Sensirion SHT11.
Revision 1.0
- Date:
- January 201
Example:
#include "mbed.h" #include "sht11.h" // clk, dat SHT11 sht(p7, p8); int main() { // initialise display lcd.init(); // print a string in top-left corner lcd.printString("Hello, World!",0,0); // move cursor to 4th row lcd.setXYAddress(0,3); // print character lcd.printChar('X'); while(1); }
Definition at line 47 of file sht11.h.
Constructor & Destructor Documentation
| SHT11 | ( | PinName | clkPin, |
| PinName | dataPin | ||
| ) |
Member Function Documentation
Generated on Thu Jul 14 2022 19:02:03 by
1.7.2