-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:ROBOTIS-GIT/OpenCR
- Loading branch information
Showing
3 changed files
with
37 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...encr_arduino/opencr/libraries/OpenCR/examples/05. Sensors/OLLO_TPS_READ/OLLO_TPS_READ.ino
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* OLLO TPS Sensor Read | ||
connect Temperature Sensor to OLLO ports | ||
Compatibility | ||
CM900 X | ||
OpenCM9.04 O | ||
created 16 Nov 2012 | ||
by ROBOTIS CO,.LTD. | ||
*/ | ||
|
||
#include <OLLO.h> | ||
OLLO myOLLO; | ||
|
||
#define YOUR_OLLO_PORT 3 | ||
|
||
void setup(){ | ||
myOLLO.begin(YOUR_OLLO_PORT);// A Module needs to be connected to proper port (PORT 1 to 4) | ||
} | ||
void loop(){ | ||
Serial.print("RAW Temperature = "); | ||
Serial.print(myOLLO.read(YOUR_OLLO_PORT)); //read ADC value from YOUR_OLLO-PORT | ||
Serial.print("\t Converted Temperature = "); | ||
Serial.println(myOLLO.read(YOUR_OLLO_PORT, TEMPERATURE_SENSOR)); //read ADC value from YOUR_OLLO-PORT | ||
delay(100); | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters