Created
December 25, 2013 02:08
-
-
Save yamato8/8119628 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
電流測定 | |
*/ | |
#include "mbed.h" | |
Serial pc(USBTX, USBRX); // tx, rx | |
AnalogIn adc_in(p20); | |
int main() { | |
while(1) { | |
printf( "%fv \r\n", 3.3 * adc_in.read() ); | |
wait(0.5f); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment