Analog Commands - ku-fpg/haskino GitHub Wiki
Analog Commands
Analog Read Pin
Cmd | Pin |
---|---|
0x40 | 0xXX |
Fields
Pin - Pin to read analog value of.
Analog Write Pin
Cmd | Pin | Value |
---|---|---|
0x41 | 0xXX | 0xXX |
Fields
Pin - Pin to write the analog value to.
Value - 0-255
Tone
Cmd | Pin | Freq LSB | Freq MSB | Dur Byte 0 LSB | Dur Byte 1 | Dur Byte 2 | Dur Byte 3 MSB |
---|---|---|---|---|---|---|---|
0x42 | 0xXX | 0xXX | 0xXX | 0xXX | 0xXX | 0xXX | 0xXX |
Fields
Pin - Pin to play tone on.
Freq - Frequency in Hertz, 0 - 16383
Dur - Duration in Milliseconds, zero means play tone until notone command.
NoTone
Cmd | Pin |
---|---|
0x43 | 0xXX |
Fields
Pin - Pin to stop playing tone on.
Analog Commands
Analog Response Read Pin
Cmd | Value LSB | Value MSB |
---|---|---|
0x48 | 0xXX | 0xXX |
Fields
Value - 0-1023