123

Dependencies:   mbed

Committer:
a2824256
Date:
Mon Oct 09 07:49:50 2017 +0000
Revision:
0:b3b9ee2613e5
Child:
1:361a6fe46f88
123

Who changed what in which revision?

UserRevisionLine numberNew contents of line
a2824256 0:b3b9ee2613e5 1 #include "mbed.h"
a2824256 0:b3b9ee2613e5 2
a2824256 0:b3b9ee2613e5 3 Serial pc(USBTX, USBRX);
a2824256 0:b3b9ee2613e5 4 int rn;
a2824256 0:b3b9ee2613e5 5 int main() {
a2824256 0:b3b9ee2613e5 6
a2824256 0:b3b9ee2613e5 7 while(1) {
a2824256 0:b3b9ee2613e5 8 rn = (rand()%11)+35;
a2824256 0:b3b9ee2613e5 9 pc.printf("%d\n",rn);
a2824256 0:b3b9ee2613e5 10 wait(1);
a2824256 0:b3b9ee2613e5 11 }
a2824256 0:b3b9ee2613e5 12 }