mirror of
https://github.com/RobTillaart/Arduino.git
synced 2024-10-03 18:09:02 -04:00
36 lines
485 B
C++
36 lines
485 B
C++
//
|
|
// FILE: WaterMix_demo.ino
|
|
// AUTHOR: Rob Tillaart
|
|
// DATE: 2023-08-29
|
|
// PURPOSE: demo
|
|
|
|
|
|
#include "WaterMix.h"
|
|
|
|
WaterMix WM;
|
|
|
|
|
|
void setup()
|
|
{
|
|
Serial.begin(115200);
|
|
Serial.println(__FILE__);
|
|
Serial.print("WATERMIX_LIB_VERSION: ");
|
|
Serial.println(WATERMIX_LIB_VERSION);
|
|
|
|
WM.begin();
|
|
WM.add(100, 50);
|
|
}
|
|
|
|
|
|
void loop()
|
|
{
|
|
WM.add(100, 10);
|
|
Serial.print(WM.volume());
|
|
Serial.print("\t");
|
|
Serial.println(WM.temperature());
|
|
delay(100);
|
|
}
|
|
|
|
|
|
// -- END OF FILE --
|