test aff8x8 avec 2*74HC595 (KRM2388AURPGB)

Dependencies:   mbed

Fork of DigitalIn_test by Junichi Katsu

Committer:
jksoft
Date:
Fri Aug 26 14:48:35 2011 +0000
Revision:
0:592717f4890b
Child:
1:5a049a86616a

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jksoft 0:592717f4890b 1 #include "mbed.h"
jksoft 0:592717f4890b 2
jksoft 0:592717f4890b 3 DigitalIn enable(p5);
jksoft 0:592717f4890b 4 DigitalOut led(LED1);
jksoft 0:592717f4890b 5
jksoft 0:592717f4890b 6 int main() {
jksoft 0:592717f4890b 7
jksoft 0:592717f4890b 8 enable.mode(PullUp);
jksoft 0:592717f4890b 9
jksoft 0:592717f4890b 10 while(1) {
jksoft 0:592717f4890b 11 if(!enable) {
jksoft 0:592717f4890b 12 led = !led;
jksoft 0:592717f4890b 13 }
jksoft 0:592717f4890b 14 //wait(0.25);
jksoft 0:592717f4890b 15 }
jksoft 0:592717f4890b 16 }