Skip to content

Instantly share code, notes, and snippets.

@cho45
Created March 3, 2016 04:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cho45/d06aeb94ffdbfa8182d8 to your computer and use it in GitHub Desktop.
Save cho45/d06aeb94ffdbfa8182d8 to your computer and use it in GitHub Desktop.
"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
#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