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