Added new interfaces bindings

Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Serban Waltter
2018-06-21 16:34:38 +03:00
committed by Mihai Tudor Panu
parent efd36e57b0
commit 52b3087de9
3 changed files with 15 additions and 1 deletions

View File

@ -23,6 +23,7 @@
*/
import upm_sht1x.SHT1X;
import upm_new_interfaces.*;
public class SHT1X_Example
{
@ -32,8 +33,10 @@ public class SHT1X_Example
// Instantiate a SHT1X sensor using D2 as the clock, and D3 as the
// data pin.
iTemperature temp = new SHT1X(2, 3);
SHT1X sensor = new SHT1X(2, 3);
// Every 2 seconds, update and print values
while (true)
{