Go to the source code of this file.
◆ GPIO_Init()
Definition at line 44 of file main.c.
45{
46
48}
#define GPIO_P1_SetMode(__PINS__, __MODE__)
◆ main()
Definition at line 50 of file main.c.
51{
56
57 while(1)
58 {
60 {
61 step = 8;
62 while (step--)
63 {
64 P1 = P1 & 0xF0 |
cw[7 - step];
66 }
67 }
70 {
71 step = 8;
72 while (step--)
73 {
74 P1 = P1 & 0xF0 |
cw[step];
76 }
77 }
79 }
80}
void SYS_Delay(uint16_t t)
◆ cw
Initial value:={
0B00001001,
0B00000001,
0B00000011,
0B00000010,
0B00000110,
0B00000100,
0B00001100,
0B00001000
}
Definition at line 33 of file main.c.