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 AnalogIn_HelloWorld by
main.cpp
- Committer:
- isshikiyuya
- Date:
- 2018-12-17
- Revision:
- 6:a78d4d502f81
- Parent:
- 5:c22a0111045b
File content as of revision 6:a78d4d502f81:
#include "mbed.h"
AnalogIn   ain1(A3);
AnalogIn   ain2(A4);
AnalogIn   ain3(A6);
int main(void)
{
    while (1) {
        printf("voltage ain1:    %f V\n", ain1.read());
        printf("voltage ain2:    %f V\n", ain2.read());
        printf("voltage ain3:    %f V\n\n", ain3.read());
        wait(2);
    }
}
            
    