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.
main.cpp
- Committer:
- Elodie
- Date:
- 2019-02-26
- Revision:
- 1:67a2c4f35f98
- Parent:
- 0:4066e82f0e4c
- Child:
- 2:9d7bbe39008b
File content as of revision 1:67a2c4f35f98:
#include "mbed.h"
//------------------------------------
// Hyperterminal configuration
// 9600 bauds, 8-bit data, no parity
//------------------------------------
AnalogIn capteur(A1);
Serial pc(SERIAL_TX, SERIAL_RX);
DigitalOut myled(LED1);
int main()
{
while(1)
{
wait(1);
pc.printf("Ucap = %.2f mV\n\r", capteur);
wait(1);
}
}