2019NHK_teamA / Mbed 2 deprecated limit

Dependencies:   mbed

Committer:
shina
Date:
Thu Apr 25 08:06:05 2019 +0000
Revision:
0:f98ff3c57d6c
This program is about limit switch.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shina 0:f98ff3c57d6c 1 #include "mbed.h"
shina 0:f98ff3c57d6c 2 DigitalOut led(LED1);
shina 0:f98ff3c57d6c 3 InterruptIn limit(D4);
shina 0:f98ff3c57d6c 4 void flip(){
shina 0:f98ff3c57d6c 5 led=!led;
shina 0:f98ff3c57d6c 6 }
shina 0:f98ff3c57d6c 7 int main(){
shina 0:f98ff3c57d6c 8 limit.rise(&flip);
shina 0:f98ff3c57d6c 9 while(true){
shina 0:f98ff3c57d6c 10 }
shina 0:f98ff3c57d6c 11 }