File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 98
98
sendValueAsTwo7bitBytes (value);
99
99
}
100
100
101
+ /* *
102
+ * Send a capability query to the Firmata host application. The resulting sysex message will have
103
+ * a CAPABILITY_RESPONSE command byte, followed by a list of byte tuples (mode and mode resolution)
104
+ * for each pin; where each pin list is terminated by 0x7F (128).
105
+ */
106
+ void FirmataMarshaller::sendCapabilityQuery (void )
107
+ const
108
+ {
109
+ sendSysex (CAPABILITY_QUERY, 0 , NULL );
110
+ }
111
+
101
112
/* (intentionally left out asterix here)
102
113
* STUB - NOT IMPLEMENTED
103
114
* Send a single digital pin value to the Firmata host application.
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ class FirmataMarshaller
37
37
38
38
/* serial send handling */
39
39
void sendAnalog (uint8_t pin, uint16_t value) const ;
40
+ void sendCapabilityQuery (void ) const ;
40
41
void sendDigital (uint8_t pin, uint16_t value) const ;
41
42
void sendDigitalPort (uint8_t portNumber, uint16_t portData) const ;
42
43
void sendString (const char *string) const ;
You can’t perform that action at this time.
0 commit comments