Robert Buch / Mbed 2 deprecated compile

Dependencies:   mbed

Committer:
robertbuc
Date:
Mon Jan 13 17:07:37 2020 +0000
Revision:
0:136627249b57
Child:
1:06d6570e52bc
main

Who changed what in which revision?

UserRevisionLine numberNew contents of line
robertbuc 0:136627249b57 1 /*
robertbuc 0:136627249b57 2 weitere viele Beispiele in meinem WIKI
robertbuc 0:136627249b57 3
robertbuc 0:136627249b57 4 */
robertbuc 0:136627249b57 5
robertbuc 0:136627249b57 6 #include "mbed.h"
robertbuc 0:136627249b57 7 #define BUTTON1 p14
robertbuc 0:136627249b57 8 //#define BUTTON1 A1
robertbuc 0:136627249b57 9
robertbuc 0:136627249b57 10 Busout myleds(LED1,LED2,LED3,LED4);
robertbuc 0:136627249b57 11 DigitalIn button(BUTTON1);
robertbuc 0:136627249b57 12
robertbuc 0:136627249b57 13 const int INIT=0x03;
robertbuc 0:136627249b57 14
robertbuc 0:136627249b57 15 int main()
robertbuc 0:136627249b57 16 {
robertbuc 0:136627249b57 17 while(1)
robertbuc 0:136627249b57 18 {
robertbuc 0:136627249b57 19 myleds=0x05;
robertbuc 0:136627249b57 20 if(button)
robertbuc 0:136627249b57 21 myleds=0x0A;
robertbuc 0:136627249b57 22 wait(0.1);
robertbuc 0:136627249b57 23 }
robertbuc 0:136627249b57 24
robertbuc 0:136627249b57 25 }