We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e82d028 commit 70890d4Copy full SHA for 70890d4
src/engine_control.h
@@ -0,0 +1,8 @@
1
+#include <engine_control_component.h>
2
+
3
+void engine_control(int pin, int engine_id, int mode, int speed) {
4
+ digitalWrite(pin, mode);
5
+ if(speed != "") {
6
+ analogWrite(engine_id, speed);
7
+ }
8
+}
0 commit comments