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: FastPWM HIDScope MODSERIAL mbed
Diff: main.cpp
- Revision:
- 3:7421e53bf9bd
- Parent:
- 2:840f7aa50e55
- Child:
- 4:c73ced5d5754
--- a/main.cpp	Tue Sep 25 12:22:57 2018 +0000
+++ b/main.cpp	Tue Sep 25 12:26:08 2018 +0000
@@ -26,6 +26,8 @@
 
 void ReadAnalogIn()
 {
+    potwaarde1 = potwaarde1*2 -1;   // Scale van -1 tot 1 ipv. 0 tot 1
+    potwaarde2 = potwaarde2*2 -1;
     scope.set(0,potwaarde1);    // Zet de potwaarde in de eerste plot bij de HID scope. Deze wordt automatisch tegen de tijd geplot
     scope.set(1,potwaarde2);
     scope.send();               // Zendt de waardes naar de pc