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: NetServices ThingSpeakEthernet mbed
Diff: Sensor.cpp
- Revision:
- 9:07f9279c30f7
- Parent:
- 8:9b35ac104ab7
- Child:
- 10:5ff1bf492439
diff -r 9b35ac104ab7 -r 07f9279c30f7 Sensor.cpp
--- a/Sensor.cpp Sun Nov 29 14:26:32 2015 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-#include "Sensor.h"
-#include "mbed.h"
-
-Sensor::Sensor(PinName sensorPin, float Koef) : sensorInput(sensorPin), K(Koef) {
-
-}
-
-float Sensor::read() {
- readVal[0] = sensorInput;
- realVal = readVal[0]; //* Računanje srednje vrijednosti
- return realVal *= K;
-
-}
-