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.
Fork of Multiplexer-Test by
Diff: Multiplexer_read.cpp
- Revision:
- 6:d61faae1989d
- Parent:
- 5:c89afbb7d0b2
- Child:
- 7:97edeef32c45
diff -r c89afbb7d0b2 -r d61faae1989d Multiplexer_read.cpp --- a/Multiplexer_read.cpp Mon Sep 08 20:41:22 2014 +0000 +++ b/Multiplexer_read.cpp Mon Sep 08 20:43:39 2014 +0000 @@ -50,7 +50,7 @@ Multiplex_select_0 = i&0x01; Multiplex_select_1 = (i>>1)&0x01; wait(0.001); - + Messwert_0 = Messkanal_0.read_u16(); Messwert_1 = Messkanal_1.read_u16(); @@ -107,10 +107,11 @@ while(true) { + interr_read_sensors(); - - - Multiplex_select_0 = 1, Multiplex_select_1 = 0; + + + pc.printf(" [Temperatur1, Motorspannung]; 0 %5.2f deg; 1 %5.2f V;", Temperatur_1, Motorspannung); pc.printf(" [Temperatur2, Motorstrom]; 0 %5.2f deg; 1 %5.2f A;", Temperatur_2, Motorstrom); pc.printf(" [Temperatur3, Bremsenspannung]; 0 %5.2f deg; 1 %5.2f V;", Temperatur_3, Bremsenspannung);