mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
ppd42ns: Move dustData to upm namespace
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com> Signed-off-by: Sarah Knepper <sarah.knepper@intel.com>
This commit is contained in:
parent
3494bd2008
commit
121caf0829
@ -45,7 +45,7 @@ int main ()
|
||||
//! [Interesting]
|
||||
// Instantiate a dust sensor on GPIO pin D8
|
||||
upm::PPD42NS* dust = new upm::PPD42NS(8);
|
||||
dustData data;
|
||||
upm::dustData data;
|
||||
cout << "This program will give readings every 30 seconds until you stop it" << endl;
|
||||
while (shouldRun)
|
||||
{
|
||||
|
@ -27,6 +27,8 @@
|
||||
#include <time.h>
|
||||
#include <mraa/aio.h>
|
||||
|
||||
namespace upm {
|
||||
|
||||
typedef struct
|
||||
{
|
||||
int lowPulseOccupancy;
|
||||
@ -34,7 +36,6 @@ typedef struct
|
||||
double concentration;
|
||||
} dustData;
|
||||
|
||||
namespace upm {
|
||||
|
||||
/**
|
||||
* @brief C++ API for the Dust Sensor
|
||||
|
Loading…
x
Reference in New Issue
Block a user