mcp9808: updated doxygen tags and formatted sources

Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Mihai Tudor Panu
2015-10-29 09:57:11 -07:00
parent 85b5c8a64e
commit 90bf469245
3 changed files with 103 additions and 111 deletions

View File

@ -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;
}