Source | DF Maker Community
Sometimes slacking off is refreshing, but constantly slacking off 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 to simulate pressing a combination of keys:
Keyboard.releaseAll();
Usage Testing
When the transmitter detects someone passing by, the receiver automatically switches the screen.
When the vibration sensor is tapped, the Leonardo simulates pressing the Enter key.
Watch the effect:
Click to see the effect👆
Wake up, friend, you can’t really believe this, right?
Slacking off at work, the boss is calling for dismissal!!! But I’m not afraid of being fired; I can go work in a factory and screw bolts, I have connections.
———— END ————
Copyright Statement: This article is sourced from the internet, providing knowledge for free, and the copyright belongs to the original author. If there are any copyright issues, please contact me for deletion.
Reply 1024 in the public account chat interface to obtain embedded resources; reply m to view the article summary.