Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of mbed_pH225 by
Diff: main.cpp
- Revision:
- 2:46161d8200a2
- Parent:
- 1:843151144560
- Child:
- 3:98adc27dc82d
--- a/main.cpp Wed Feb 18 05:26:48 2015 +0000
+++ b/main.cpp Thu Feb 26 07:05:14 2015 +0000
@@ -5,11 +5,14 @@
//serial connection via USB
Serial pc(USBTX, USBRX);
AnalogIn pH_sensor(A0);
+AnalogOut temp_sensor(A2);
+
int main()
{
float voltage, pH, tempC, tempF;
-
+ //Power temperature sensor
+ temp_sensor = 0.00002;
while(1) {
//Take average of readings over 10 seconds
double totalVal = 0.0;
