Download shiyan8/8new.c from Beifengdo/Microcontrollers: direct link, hf CLI and curl.
- Browser
- Download file 245 Bytes
-
https://huggingface.co/datasets/Beifengdo/Microcontrollers/resolve/main/shiyan8/8new.c
- Command line
-
hf download hf://datasets/Beifengdo/Microcontrollers/shiyan8/8new.c
-
curl -L -o 8new.c https://huggingface.co/datasets/Beifengdo/Microcontrollers/resolve/main/shiyan8/8new.c
245 Bytes
| unsigned char tab[6] = {0x00,0x00,0xff,0x81,0x42,0x3c,0x00,0x00} | |
| void main(){ | |
| unsigned char i,k; | |
| while(1){ | |
| P0 = 0xfe; | |
| P1 = tab[1]; | |
| for (k=0;k<6,k++){ | |
| P1 = tab[k]; | |
| for (i=0,i<50,i++); | |
| P0 = P0<<1|0x01; | |
| } | |
| } | |
| } | |