mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 17:31:13 +03:00
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:

committed by
Mihai Tudor Panu

parent
efd36e57b0
commit
52b3087de9
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user