TroyesGEII:No Access

De troyesGEII
Aller à : navigation, rechercher
#include <stdio.h>
#include <stdlib.h>

int main()
{
    char c;
    int arduino = serialOpen(serialPort,serialDebit);

    while(1)
    {
        do
        {
            c = serialGetchar(arduino);
        }
        while (c!='L');
        do
        {
            c = serialGetchar(arduino);
            if(c!=';')
            {
                printf("%c",c);
            }
            else
            {
                printf("\n");
            }
        }
        while (c!=';');
    }

}