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.
Fonctions.c
- Committer:
- dyooz
- Date:
- 2021-10-02
- Revision:
- 1:e3bea6b4ce47
File content as of revision 1:e3bea6b4ce47:
/*
void increment_nombre()
{
int i=0;
wait(1);
i++;
printf("i = %d \n",i);
UART.putc(i);
if (i == 255){
i=0;}
}
void Exemple1_Led()
{
char c;
wait(1);
if(UART.readable() == 1) // Si on a reçu un caractère
{
c = UART.getc(); // alors mettre le caractère dans la variable c
if (c == 'a') // si c’est ‘a’
{Led1 = 1; } // led allumée
if (c == 'e') // Si c’est ‘e’
{Led1 = 0;} // led éteinte
}
}*/