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 MAX11410-test by
Diff: main.cpp
- Revision:
- 10:5f22ca6eb6cd
- Parent:
- 7:5295cbdb123c
--- a/main.cpp Sat Jan 27 19:48:33 2018 +0000
+++ b/main.cpp Fri Mar 16 20:13:22 2018 +0000
@@ -86,10 +86,12 @@
//read chip ID
pc.printf("chip ID %d\r\n",adc1.read8bits(REG_PART_ID,&int_state) );
+ pc.printf("chip ID %d\r\n",adc2.read8bits(REG_PART_ID,&int_state) );
+
//config ADC 1
adc1.reset(); //POR
-// adc2.reset();
+ adc2.reset();
//check default register configs
pc.printf("default regs for ADC1\r\n");
@@ -168,8 +170,8 @@
} //channel sweep
pc.printf("\r\n");
+
- //config ADC 2: repeat above
