mirror of
https://github.com/eclipse/upm.git
synced 2025-07-01 09:21:12 +03:00
mcp9808: updated doxygen tags and formatted sources
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
@ -1,24 +1,19 @@
|
||||
|
||||
#include "mraa.hpp"
|
||||
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
#include "mcp9808.h"
|
||||
|
||||
|
||||
#include "mraa.hpp"
|
||||
|
||||
int main()
|
||||
{
|
||||
|
||||
using namespace std;
|
||||
|
||||
//! [Interesting]
|
||||
int command;
|
||||
upm::MCP9808 *temp = new upm::MCP9808(6);
|
||||
|
||||
|
||||
do
|
||||
{
|
||||
|
||||
cout << endl;
|
||||
cout << "1 - read temp \t" ;
|
||||
cout << "2 - sleep mode \t";
|
||||
@ -43,7 +38,6 @@ int main()
|
||||
cout << "Enter a command: ";
|
||||
cin >> command;
|
||||
|
||||
|
||||
switch(command)
|
||||
{
|
||||
float t;
|
||||
@ -164,8 +158,6 @@ int main()
|
||||
}
|
||||
|
||||
}while (command != -1 );
|
||||
|
||||
|
||||
|
||||
//! [Interesting]
|
||||
return MRAA_SUCCESS;
|
||||
}
|
||||
|
Reference in New Issue
Block a user