summaryrefslogtreecommitdiff
path: root/src/cmd.h
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-01-05 03:14:50 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-01-05 03:14:50 +0100
commit4a4ba3538cf52cc1e0238c673d4a97dbbf68c56a (patch)
treec01e5d0ab22eb618eef08ea85b9e233a87577d4c /src/cmd.h
parentd9b9b3e71397a2da9e16cbee75c4954105237363 (diff)
downloadanalog_instruments-4a4ba3538cf52cc1e0238c673d4a97dbbf68c56a.tar.gz
fix commands, add fade
Diffstat (limited to 'src/cmd.h')
-rw-r--r--src/cmd.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/cmd.h b/src/cmd.h
index e85093f..e246933 100644
--- a/src/cmd.h
+++ b/src/cmd.h
@@ -13,7 +13,7 @@
#include "pwm.h"
#include "helpers.h"
-#define _CMD_CNT 2
+#define _CMD_CNT 3
#define _CMD_MAX_ARGC 4
#define _ERR_CMD 1
@@ -32,6 +32,14 @@ void cmd_tick(char _c);
void cmd_set_pwm(uint8_t _argv[]);
/**
+ * argc=3
+ *
+ * 0: Pin Num
+ * 1-2: Dutycycle in HEX (00-FF)
+ */
+void cmd_fade_pwm(uint8_t _argv[]);
+
+/**
* argc=1
*
* 0: Error type