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.
emet_xbee.cpp
- Committer:
- pathae
- Date:
- 2021-10-20
- Revision:
- 0:b2c100cfa6c9
- Child:
- 1:0672144e8101
File content as of revision 0:b2c100cfa6c9:
#include "mbed.h"
Serial xbee(PA_9,PA_10); //Initalise xbee_lib
Serial pc(USBTX, USBRX); //Initalise PC serial comms
int temperature = 82;
int pression = 1234;
int vit_rot = 5678;
DigitalOut myled(LED2);
int main()
{
while(1)
{
xbee.printf ("$MOTEUR,%d,%d,%d*",temperature,pression,vit_rot);
//pc.printf("$MOTEUR,%d,%d,%d*\n\r",temperature,pression,vit_rot);
wait(1);
myled=!myled;
}
}