ok

Dependencies:   mbed

main.cpp

Committer:
stersky
Date:
2019-02-12
Revision:
0:693ffe0e7bb9

File content as of revision 0:693ffe0e7bb9:

#include "mbed.h"

Serial centrale(p9, p10);

int main() {
    double niveau = 1;
    centrale.baud(9600);
    
    while(1) {
        centrale.printf("$%3lf*\n\r",niveau);
        niveau = -1.5*niveau;
        if(niveau>10000) niveau = 1;
        wait(0.5);
    }
}