https://github.com/phptuts/electron-slap
https://github.com/phptuts/electron-slap
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/phptuts/electron-slap
- Owner: phptuts
- Created: 2024-08-05T01:51:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-28T05:09:02.000Z (almost 2 years ago)
- Last Synced: 2025-01-23T01:26:44.007Z (over 1 year ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SLAP ELECTRON APP
```c++
#include
Servo servo;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
servo.attach(7);
servo.write(175);
}
void loop() {
// put your main code here, to run repeatedly:
String message = Serial.readStringUntil("|");
if (message == "SLAP|")
{
Serial.println("SLAP WORKED");
servo.write(95);
delay(2000);
servo.write(175);
}
delay(100);
}
```