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: main.cpp
- Revision:
- 1:605a7fdd4e93
- Parent:
- 0:1f30d2df739e
- Child:
- 5:fc7ae837af13
diff -r 1f30d2df739e -r 605a7fdd4e93 main.cpp --- a/main.cpp Fri Oct 14 08:19:45 2016 +0000 +++ b/main.cpp Fri Oct 14 08:24:58 2016 +0000 @@ -1,7 +1,7 @@ -// NuMaker-PFM-NUC472 use ADC0 (A0) to read gas sensor (MQ-3) +// NuMaker-PFM-NUC472 use ADC0 (A0/PE_1) to read gas sensor (MQ-3) #include "mbed.h" -AnalogIn adc0(A0); // connected to MQ-3 gas sensor +AnalogIn adc0(PE_1); // A0 connected to MQ-3 gas sensor DigitalOut led(LED1); int main(void)