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
Diff: src/adc.cpp
- Revision:
- 6:39442d493098
- Parent:
- 1:9f8583ba2431
- Child:
- 8:d3d7dca419b3
--- a/src/adc.cpp Sat Dec 01 00:08:53 2018 +0000 +++ b/src/adc.cpp Mon Dec 03 01:03:14 2018 +0000 @@ -37,13 +37,13 @@ } void getADCvolts(void){ - v48 = VIN48; - v24 = VIN24; - v12 = VIN12; + v48 = VIN48.read_u16(); + v24 = VIN24.read_u16(); + v12 = VIN12.read_u16(); } void getADCamps(void){ - i48 = IIN48; - i24 = IIN24; - i12 = IIN12; + i48 = IIN48.read_u16(); + i24 = IIN24.read_u16(); + i12 = IIN12.read_u16(); } \ No newline at end of file