From ae98a965198041e59bdcc5dd0d82f38412405087 Mon Sep 17 00:00:00 2001 From: FURK4NGG <105324908+FURK4NGG@users.noreply.github.com> Date: Mon, 6 Oct 2025 23:33:09 +0300 Subject: [PATCH] Update desktop_deck.ino --- desktop_deck.ino | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/desktop_deck.ino b/desktop_deck.ino index 2b6ce25..b2866a7 100644 --- a/desktop_deck.ino +++ b/desktop_deck.ino @@ -6,7 +6,7 @@ #define role_d 6 int role = 7; int roleK = 0; -int i = 0; +int i,a = 0; int buton_durumu; int veri; @@ -108,4 +108,32 @@ void wifi(){ delay(100); Mouse.release(MOUSE_LEFT); Keyboard.releaseAll(); - delay(2000);} \ No newline at end of file + delay(2000);} + +//LINUX + +void linux_kapat(){ + Keyboard.press(KEY_LEFT_CTRL); + Keyboard.press('x'); + delay(100); + Keyboard.releaseAll(); + delay(1000); + Keyboard.print("sudo shutdown now"); + Keyboard.press(KEY_RETURN); + Keyboard.releaseAll();} + +void linux_printscreen(){ + a=!a; + if(a==1){ + Keyboard.press(KEY_LEFT_CTRL); + Keyboard.press(KEY_LEFT_SHIFT); + Keyboard.press(KEY_PRINT_SCREEN); + delay(100); + Keyboard.releaseAll();} + else{ + Keyboard.press(KEY_LEFT_CTRL); + Keyboard.press(KEY_LEFT_SHIFT); + Keyboard.press(KEY_PAUSE); + delay(100); + Keyboard.releaseAll();} + }