kakeru hasebe
/
all_led_dot
dotomatodayo
main.cpp@0:d8eebd636627, 2018-09-11 (annotated)
- Committer:
- syosyo
- Date:
- Tue Sep 11 05:42:41 2018 +0000
- Revision:
- 0:d8eebd636627
DotMatrix
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
syosyo | 0:d8eebd636627 | 1 | #include "mbed.h" |
syosyo | 0:d8eebd636627 | 2 | |
syosyo | 0:d8eebd636627 | 3 | |
syosyo | 0:d8eebd636627 | 4 | BusOut A_led(PA_7,PA_1,PA_11,PA_4,PB_1,PA_8,PB_1,PF_1); |
syosyo | 0:d8eebd636627 | 5 | BusOut K_led(PB_3,PA_0,PA_5,PA_9,PA_6,PA_10,PA_12,PA_3); |
syosyo | 0:d8eebd636627 | 6 | |
syosyo | 0:d8eebd636627 | 7 | int main(){ |
syosyo | 0:d8eebd636627 | 8 | while(1){ |
syosyo | 0:d8eebd636627 | 9 | for(int i = 0;i < 8;i++){ |
syosyo | 0:d8eebd636627 | 10 | K_led = 0b10000000; |
syosyo | 0:d8eebd636627 | 11 | A_led = 0b11111111; |
syosyo | 0:d8eebd636627 | 12 | K_led = K_led >> 1; |
syosyo | 0:d8eebd636627 | 13 | } |
syosyo | 0:d8eebd636627 | 14 | } |
syosyo | 0:d8eebd636627 | 15 | } |
syosyo | 0:d8eebd636627 | 16 |