diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2022-01-05 03:14:50 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2022-01-05 03:14:50 +0100 |
commit | 4a4ba3538cf52cc1e0238c673d4a97dbbf68c56a (patch) | |
tree | c01e5d0ab22eb618eef08ea85b9e233a87577d4c /src/cmd.h | |
parent | d9b9b3e71397a2da9e16cbee75c4954105237363 (diff) | |
download | analog_instruments-4a4ba3538cf52cc1e0238c673d4a97dbbf68c56a.tar.gz |
fix commands, add fade
Diffstat (limited to 'src/cmd.h')
-rw-r--r-- | src/cmd.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 |