school

Dependencies:   mbed

Committer:
AK1412
Date:
Mon Jul 23 09:00:46 2018 +0000
Revision:
0:b0b9bf32a05e
?

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AK1412 0:b0b9bf32a05e 1 #include "mbed.h"
AK1412 0:b0b9bf32a05e 2 InterruptIn button(D3);
AK1412 0:b0b9bf32a05e 3 DigitalOut led(D13);
AK1412 0:b0b9bf32a05e 4 void interrupt(){
AK1412 0:b0b9bf32a05e 5 led=!led;
AK1412 0:b0b9bf32a05e 6 }
AK1412 0:b0b9bf32a05e 7 int main() {
AK1412 0:b0b9bf32a05e 8 button.rise( interrupt);
AK1412 0:b0b9bf32a05e 9 while(1){
AK1412 0:b0b9bf32a05e 10 }
AK1412 0:b0b9bf32a05e 11 }