Skip to content

Commit 47fc4e6

Browse files
committed
Move ENCODER_DATA instruction to Firmata.h
1 parent ff0a55f commit 47fc4e6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Firmata.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141

4242
// extended command set using sysex (0-127/0x00-0x7F)
4343
/* 0x00-0x0F reserved for user-defined commands */
44+
#define ENCODER_DATA 0x61 // reply with encoders current positions
4445
#define SERVO_CONFIG 0x70 // set max angle, minPulse, maxPulse, freq
4546
#define STRING_DATA 0x71 // a string message with 14-bits per char
4647
#define STEPPER_DATA 0x72 // control a stepper motor
@@ -61,6 +62,7 @@
6162
#define SCHEDULER_DATA 0x7B // send a createtask/deletetask/addtotask/schedule/querytasks/querytask request to the scheduler
6263
#define SYSEX_NON_REALTIME 0x7E // MIDI Reserved for non-realtime messages
6364
#define SYSEX_REALTIME 0x7F // MIDI Reserved for realtime messages
65+
6466
// these are DEPRECATED to make the naming more consistent
6567
#define FIRMATA_STRING 0x71 // same as STRING_DATA
6668
#define SYSEX_I2C_REQUEST 0x76 // same as I2C_REQUEST

utility/EncoderFirmata.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
#define ENCODER_RESET_POSITION (0x03)
4141
#define ENCODER_REPORT_AUTO (0x04)
4242
#define ENCODER_DETACH (0x05)
43-
#define ENCODER_DATA (0x61) // TODO : Move to Firmata.h
4443

4544
class EncoderFirmata:public FirmataFeature
4645
{

0 commit comments

Comments
 (0)