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.
Diff: ADC.cpp
- Revision:
- 1:d8a3df4b70f6
- Parent:
- 0:88f8e80dc5fd
- Child:
- 4:cc896bb62196
--- a/ADC.cpp Wed Mar 19 10:29:32 2014 +0000 +++ b/ADC.cpp Wed Mar 19 10:46:01 2014 +0000 @@ -46,19 +46,7 @@ while(busy == 1); cnvst = 1; - //3. eerste byte vullen - for (int i = 15; i >= 8; i--) - { - sdclk = 1; - wait_us(1); - - data |= sdout <<i; - sdclk = 0; - wait_us(1); - } - - //4. tweede byte vullen - for (int i = 7; i >= 0; i--) + for (int i = 15; i >= 0; i--) { sdclk = 1; wait_us(1);