Download 7/7.c from KeLe-open-code/MCU: direct link, hf CLI and curl.
- Browser
- Download file 192 Bytes
-
https://huggingface.co/KeLe-open-code/MCU/resolve/main/7/7.c
- Command line
-
hf download hf://KeLe-open-code/MCU/7/7.c
-
curl -L -o 7.c https://huggingface.co/KeLe-open-code/MCU/resolve/main/7/7.c
192 Bytes
| sbit LED = P2^0; | |
| void int0(void) interrupt 0 | |
| { | |
| LED = !LED; | |
| } | |
| void main(void) | |
| { | |
| LED = 1; | |
| IT0 = 1; | |
| EX0 = 1; | |
| EA = 1; | |
| while (1); | |
| } | |