GY-63_MS5611/libraries/MT8870/examples/MT8870_demo/MT8870_demo.ino

42 lines
557 B
Arduino
Raw Normal View History

2021-01-29 06:31:58 -05:00
//
// FILE: MT8870_demo.ino
// AUTHOR: Rob Tillaart
// PURPOSE: demo
// DATE: 2020-08-13
2021-12-22 05:05:27 -05:00
2021-01-29 06:31:58 -05:00
#include "MT8870.h"
MT8870 DTMF;
2021-12-22 05:05:27 -05:00
2021-01-29 06:31:58 -05:00
void setup()
{
Serial.begin(115200);
Serial.println(__FILE__);
Serial.print("MT8870_LIB_VERSION: ");
Serial.println(MT8870_LIB_VERSION);
DTMF.begin(2, 4, 5, 6, 7);
}
2021-12-22 05:05:27 -05:00
2021-01-29 06:31:58 -05:00
void loop()
{
if (DTMF.available())
{
int raw = DTMF.readRaw();
char ch = DTMF.read();
Serial.print(raw);
Serial.print('\t');
Serial.print(ch);
Serial.println();
}
// do something else
}
2021-12-22 05:05:27 -05:00
2021-01-29 06:31:58 -05:00
// -- END OF FILE --
2021-12-22 05:05:27 -05:00