Lazar Dobric
/
7seg-multiplex
gas
Revision 0:6355912eb7b8, committed 2021-11-05
- Comitter:
- makotolagano
- Date:
- Fri Nov 05 23:11:27 2021 +0000
- Commit message:
- a
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r 6355912eb7b8 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Fri Nov 05 23:11:27 2021 +0000 @@ -0,0 +1,34 @@ +#include "mbed.h" + + +#define A PA_10 +#define B PA_9 +#define C PA_8 +#define D PB_10 +#define E PB_5 +#define F PB_4 +#define G PB_3 +#define SEL_1 PB_6 +#define SEL_2 PC_7 +//aktivna vrednost 0 +const int digit[] = {0b1000000, 0b1111001, 0b0100100, 0b0110000, 0b0011001, 0b0010010, 0b0000010, 0b1111000, 0b0000000, 0b0010000, 0b1111111}; + +//BusOut display(A,B,C,D,E,F,G,SEL_1,SEL_2); //test +//BusOut display(PA_5,PA_6,PA_7,PB_6,PA_9,PA_8,PB_10); //zolin diode zezanje + +int main(){ +// int i = 0; +// display = digit[0]; + + + while(true){ + //if(i == 9){ +// i = -1; +// } +// display = digit[++i]; +// +// wait_ms(1000); + } + + +} \ No newline at end of file
diff -r 000000000000 -r 6355912eb7b8 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Nov 05 23:11:27 2021 +0000 @@ -0,0 +1,1 @@ +https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400 \ No newline at end of file