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.cpp
00001 00002 00003 #include "suli2.h" 00004 #include "grove_moisture.h" 00005 00006 00007 00008 //local functions 00009 00010 00011 //local variables 00012 00013 00014 00015 00016 void grove_moisture_init(ANALOG_T *analog, int pin) 00017 { 00018 suli_analog_init(analog, pin); 00019 } 00020 00021 bool grove_moisture_write_setup(ANALOG_T *analog) 00022 { 00023 return true; 00024 } 00025 00026 bool grove_moisture_readmoisture(ANALOG_T *analog, uint16_t *moisture) 00027 { 00028 *moisture = suli_analog_read(analog); 00029 return true; 00030 }
Generated on Tue Jul 12 2022 20:47:30 by
1.7.2