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.
grove_moisture_class.cpp
00001 00002 00003 #include "grove_moisture_class.h" 00004 00005 GroveMoisture::GroveMoisture(int pin) 00006 { 00007 this->analog = (ANALOG_T *)malloc(sizeof(ANALOG_T)); 00008 grove_moisture_init(this->analog, pin); 00009 } 00010 00011 bool GroveMoisture::write_setup(void) 00012 { 00013 return grove_moisture_write_setup(this->analog); 00014 } 00015 00016 bool GroveMoisture::read_moisture(uint16_t *moisture) 00017 { 00018 return grove_moisture_readmoisture(analog, moisture); 00019 }
Generated on Tue Jul 12 2022 20:47:30 by
1.7.2