Sometimes fishing is refreshing, and fishing all the time is even better!
Materials List
-
DFRobot Leonardo & Xbee R3
-
Gravity: Digital Wireless Switch (433MHz)
-
Gravity: 3-80cm Infrared Digital Obstacle Avoidance Sensor
-
Gravity: Digital Vibration Sensor (Arduino Compatible)
-
NOT Gate
Circuit Connection
Key Functions
Keyboard.press()
Select the keys you want to use:
Keyboard.press(KEY_LEFT_ALT);
Keyboard.press(KEY_TAB);
Keyboard.releaseAll()
Release keys and simulate pressing a combination of keys:
Keyboard.releaseAll();
Usage Testing
When the transmitter detects someone passing by, the receiver automatically switches the screen.
When tapping the vibration sensor, Leonardo simulates pressing the Enter key.
Watch the effect:
Click to watch the effect👆
Wake up, friend, you can’t really believe this, right?
Fishing at work, the boss shouts to fire you!!! But I’m not afraid of being fired; I can go work at a factory, I have connections.
1. The teaching materials for “Embedded Real-Time Operating System” are now online!
2. Embedded Development | How much should the RTOS Tick be set?
3. Confirmed, the GD32F310 is the value-for-money MCU you want!
4. A method for local and remote upgrades of embedded Linux programs!
5. What is a 0-ohm resistor?
6. Enumeration details that stump C language experts.
Disclaimer: This article is a network reprint, and the copyright belongs to the original author. If there are any copyright issues, please contact us, and we will confirm the copyright based on the copyright certificate you provide and either pay for the manuscript or delete the content.