Skip to content

Instantly share code, notes, and snippets.

@yamato8
Created December 25, 2013 02:08
Show Gist options
  • Save yamato8/8119628 to your computer and use it in GitHub Desktop.
Save yamato8/8119628 to your computer and use it in GitHub Desktop.
/*
電流測定
*/
#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