This commit is contained in:
2025-07-11 19:02:15 +03:00
parent a5903d549d
commit 5d1721afa7
2 changed files with 16 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
.vscode
.DS_Store
build

13
src/main.c Normal file
View File

@@ -0,0 +1,13 @@
#include "avr/io.h"
#include "avr/sleep.h"
#include "avr/fuse.h"
FUSES = {0xE2, 0xDF, 0xFF};
int main(void)
{
set_sleep_mode(SLEEP_MODE_PWR_DOWN);
sleep_enable();
sleep_cpu();
return 0;
}