Command | Use | Data Length | Data | Memo | Return | Return Length | Data |
---|---|---|---|---|---|---|---|
/cfgain | Config How many Analog Input to scan | 1 | int | The config | 1 | int | |
/cfgpin | Config Digital Pins for function | 14 | int | Should always skip pin 0,1 as it's used for SLIP comm 0=Din, 1=Dout, 2=PWM, 3=Servo | The config | 14 | int |
/do | Digital Output | 14 | int | Note that 0 and 1 won't have any effect | Output Datus | 14 | int |
/pwm | PWM Output | 6 | int | Pin 3,5,6,9,10,11 (Used for both PWM and Servo) | Output Datus | 6 | int |
/as | Poll analog in | 0 | Analog in | 1~6 | int | ||
/ds | Poll digital in | 0 | 0,1 will be random as it's polling from serial input | Digital in | 14 | int |
Bugs to fix: Should always skip pin 0,1 as hardware serial is always occupied.
Version 2.0 Insight:
- Serialpins should be removed.
- Expandability for loadable modules that masks out io pins.
- Internal events that can occur to do interrupt-like information to Host.