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.
Dependencies: mbed
main.cpp
- Committer:
- tani_n
- Date:
- 2018-12-05
- Revision:
- 0:4646e91ee22c
File content as of revision 0:4646e91ee22c:
#include "mbed.h" Serial xbe1(dp16, dp15); DigitalOut myled(LED1); Serial pc(USBTX, USBRX); AnalogIn analog_value(dp13); int main() { float meas, temp; int count=0; myled=0; while(1){ meas=analog_value.read(); meas=meas*3300; temp=0.1*meas-50; myled=0; xbe1.printf("40D7B70A> %d: temp = %.1f C\r\n", count++, temp); wait_ms(1000); myled=1; } }