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.
Revision 1:2fa5ba8b899f, committed 2016-11-16
- Comitter:
- kenjiArai
- Date:
- Wed Nov 16 12:40:58 2016 +0000
- Parent:
- 0:62a1e3699786
- Commit message:
- modify comment
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Nov 16 12:10:42 2016 +0000 +++ b/main.cpp Wed Nov 16 12:40:58 2016 +0000 @@ -39,7 +39,6 @@ AnalogIn v_input(A0); AnalogIn vref(ADC_VREF); -DigitalOut myled(LED1); Timer tmr; int main() { @@ -53,7 +52,7 @@ v_in = v_input.read(); v_in_actual = v_in * vdd * ( R1 + R2) / R2; printf("V IN : %5.3f [V]\r\n", v_in_actual); - wait_ms(500 - tmr.read_ms()); // 1sec interval + wait_ms(500 - tmr.read_ms()); // 0.5sec interval } } #endif