Example using Electricity sensor
Dependencies: mbed
Fork of Seeed_Grove_Moisture_Sensor_Example by
main.cpp
- Committer:
- sam_grove
- Date:
- 2014-08-16
- Revision:
- 1:894d3b3f26e8
- Parent:
- 0:780321a3f63a
File content as of revision 1:894d3b3f26e8:
#include "mbed.h" AnalogIn electricity(A0); int main(void) { float value = 0.0f; while(1) { value = electricity; printf("AC Current reading is %2.2f\n", value); wait(1.0f); } }