mirror of
				https://github.com/KevinMidboe/Arduino.git
				synced 2025-10-29 17:40:11 +00:00 
			
		
		
		
	Init commit with many years of arduino sketches and projects. I dont know if the esp8266 includes much, but there are also libraries. I hope they dont have crazy automatic versioning through the Arduino IDE.
This commit is contained in:
		
							
								
								
									
										22
									
								
								Projects/Keyboard/Login/Login.ino
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										22
									
								
								Projects/Keyboard/Login/Login.ino
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,22 @@ | ||||
|  const int buttonPin = 4; | ||||
|  int buttonState = LOW; | ||||
|   | ||||
|  void setup()  | ||||
|  { | ||||
|    pinMode(buttonPin, LOW); | ||||
|    Keyboard.begin(); | ||||
|  } | ||||
|   | ||||
|  void loop() | ||||
|  { | ||||
|    int buttonState = digitalRead(buttonPin); | ||||
|    if (buttonState == HIGH) | ||||
|    { | ||||
|      Keyboard.write((char) 0xB0); | ||||
|      delay(500);     | ||||
|      Keyboard.print("Kevinojm"); | ||||
|      Keyboard.write((char) 0xB0); | ||||
|      delay(500); | ||||
|    } | ||||
|  } | ||||
|  | ||||
							
								
								
									
										24
									
								
								Projects/Keyboard/Open_Program/Open_Program.ino
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										24
									
								
								Projects/Keyboard/Open_Program/Open_Program.ino
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,24 @@ | ||||
|  const int buttonPin = 4; | ||||
|  int buttonState = LOW; | ||||
|   | ||||
|  void setup()  | ||||
|  { | ||||
|    pinMode(buttonPin, LOW); | ||||
|    Keyboard.begin(); | ||||
|  } | ||||
|   | ||||
|  void loop() | ||||
|  { | ||||
|    int buttonState = digitalRead(buttonPin); | ||||
|    if (buttonState == HIGH) | ||||
|    {     | ||||
|      Keyboard.press((char) 0x80); | ||||
|      Keyboard.press((char) 0x20); | ||||
|      Keyboard.releaseAll(); | ||||
|      Keyboard.print("Photoshop"); | ||||
|      Keyboard.write((char) 0xB0); | ||||
|      Keyboard.releaseAll(); | ||||
|      delay(500); | ||||
|    } | ||||
|  } | ||||
|  | ||||
							
								
								
									
										24
									
								
								Projects/Keyboard/Sleep/Sleep.ino
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										24
									
								
								Projects/Keyboard/Sleep/Sleep.ino
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,24 @@ | ||||
|  const int buttonPin = 4; | ||||
|  int buttonState = LOW; | ||||
|   | ||||
|  void setup()  | ||||
|  { | ||||
|    pinMode(buttonPin, LOW); | ||||
|    Keyboard.begin(); | ||||
|  } | ||||
|   | ||||
|  void loop() | ||||
|  { | ||||
|    int buttonState = digitalRead(buttonPin); | ||||
|    if (buttonState == HIGH) | ||||
|    {     | ||||
|      Keyboard.press((char) 0x80); | ||||
|      Keyboard.press((char) 0x20); | ||||
|      Keyboard.releaseAll(); | ||||
|      delay(100); | ||||
|      Keyboard.print("Sleep"); | ||||
|      Keyboard.write((char) 0xB0); | ||||
|      delay(500); | ||||
|    } | ||||
|  } | ||||
|  | ||||
							
								
								
									
										28
									
								
								Projects/Keyboard/ping/ping.ino
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										28
									
								
								Projects/Keyboard/ping/ping.ino
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,28 @@ | ||||
|  const int buttonPin = 4; | ||||
|  int buttonState = LOW; | ||||
|   | ||||
|  void setup()  | ||||
|  { | ||||
|    pinMode(buttonPin, LOW); | ||||
|    Keyboard.begin(); | ||||
|  } | ||||
|   | ||||
|  void loop() | ||||
|  { | ||||
|    int buttonState = digitalRead(buttonPin); | ||||
|    if (buttonState == HIGH) | ||||
|    {     | ||||
|      Keyboard.press((char) 0x80); | ||||
|      Keyboard.press((char) 0x20); | ||||
|      Keyboard.releaseAll(); | ||||
|      delay(100); | ||||
|      Keyboard.print("Terminal"); | ||||
|      Keyboard.write((char) 0xB0); | ||||
|      delay(600); | ||||
|      Keyboard.print("ping google.com"); | ||||
|      Keyboard.write((char) 0xB0); | ||||
|      Keyboard.releaseAll(); | ||||
|      delay(500); | ||||
|    } | ||||
|  } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user