-
-
Save cho45/d06aeb94ffdbfa8182d8 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
"arm-none-eabi-size" -B -d .pioenvs/lpc1114fn28/firmware.elf | |
text data bss dec hex filename | |
17476 128 440 18044 467c .pioenvs/lpc1114fn28/firmware.elf |
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" | |
DigitalOut myled(LED1); | |
AnalogIn adc(dp1); | |
Serial serial(USBTX, USBRX); | |
int main() { | |
while(1) { | |
float foobar = adc.read(); | |
serial.printf("%d\n", foobar * 1000); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment