From 10650e0ca7dda8e1b8a9592ca415878536914202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Guill=C3=A9n=20i=20Pelegay?= Date: Tue, 7 Jan 2025 20:17:36 +0100 Subject: [PATCH] Updating CreativeRobotix lib --- src/libraries/Creative_Robotix.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/Creative_Robotix.xml b/src/libraries/Creative_Robotix.xml index f545b25..2be686b 100644 --- a/src/libraries/Creative_Robotix.xml +++ b/src/libraries/Creative_Robotix.xml @@ -1,2 +1,2 @@ -
Hello!
1.00tempovar tHigh, tLow; tmp = Math.floor(tempo * 100); // frequency bytes tLow = tmp & 0xFF; tHigh = (tmp & 0xFFFF) >> 8; this.arduino.board.sp.write(new Buffer([0xF0, 0x09, 0x04, tHigh, tLow, 0xF7])) 0.01
green sleeves green sleeves little lamb happy birthday star wars chariots
2000100100005000frequencydurationvar fHigh, fLow, dHigh, dLow; // frequency bytes fLow = frequency & 0xFF; fHigh = (frequency & 0xFFFF) >> 8; // duration bytes dLow = duration & 0xFF; dHigh = (duration & 0xFFFF) >> 8; this.arduino.board.sp.write(new Buffer([0xF0, 0x09, 0x03, fHigh, fLow, dHigh, dLow, 0xF7])) 0.01
210statespeedthis.arduino.board.sp.write(new Buffer([0xF0, 0x0B, speed, state, 0xF7]))0.01
0130leftdegreesthis.arduino.board.sp.write(new Buffer([0xF0, 0x0E, 3, leftdegrees, 0x00, 0xF7]))0.01
0130rightdegreesthis.arduino.board.sp.write(new Buffer([0xF0, 0x0E, 4, rightdegrees, 0x00, 0xF7]))0.01
25statespeedthis.arduino.board.sp.write(new Buffer([0xF0, 0x0C, speed, state, 0xF7]))0.01
0headposthis.arduino.board.sp.write(new Buffer([0xF0, 0x0E, 5, headpos, 0x00, 0xF7]))0.01
120leftspeedthis.arduino.board.sp.write(new Buffer([0xF0, 0x0E, 0x00, leftspeed, 0xF7]))0.01
120rightspeedthis.arduino.board.sp.write(new Buffer([0xF0, 0x0E, 0x01, rightspeed, 0xF7]))0.01
00
smile smile neutral frown question ok tick cross rock paper sissors heart quaver quaverx2 blank
red yellow green
red yellow green
1false
1 2 3 4 50Please input a sensor number between 1 and 5
3 5
1 2
\ No newline at end of file +
Hello!
1.00tempovar tHigh, tLow; tmp = Math.floor(tempo * 100); // frequency bytes tLow = tmp & 0xFF; tHigh = (tmp & 0xFFFF) >> 8; this.arduino.board.sp.write(new Buffer([0xF0, 0x09, 0x04, tHigh, tLow, 0xF7])) 0.01
green sleeves green sleeves little lamb happy birthday star wars chariots
2000100100005000frequencydurationvar fHigh, fLow, dHigh, dLow; // frequency bytes fLow = frequency & 0xFF; fHigh = (frequency & 0xFFFF) >> 8; // duration bytes dLow = duration & 0xFF; dHigh = (duration & 0xFFFF) >> 8; this.arduino.board.sp.write(new Buffer([0xF0, 0x09, 0x03, fHigh, fLow, dHigh, dLow, 0xF7])) 0.01
210statespeedthis.arduino.board.sp.write(new Buffer([0xF0, 0x0B, speed, state, 0xF7]))0.01
0130leftdegreesthis.arduino.board.sp.write(new Buffer([0xF0, 0x0E, 3, leftdegrees, 0x00, 0xF7]))0.01
0130rightdegreesthis.arduino.board.sp.write(new Buffer([0xF0, 0x0E, 4, rightdegrees, 0x00, 0xF7]))0.01
25statespeedthis.arduino.board.sp.write(new Buffer([0xF0, 0x0C, speed, state, 0xF7]))0.01
0headposthis.arduino.board.sp.write(new Buffer([0xF0, 0x0E, 5, headpos, 0x00, 0xF7]))0.01
120leftspeedthis.arduino.board.sp.write(new Buffer([0xF0, 0x0E, 0x00, leftspeed, 0xF7]))0.01
120rightspeedthis.arduino.board.sp.write(new Buffer([0xF0, 0x0E, 0x01, rightspeed, 0xF7]))0.01
00
smile smile neutral frown question ok tick cross rock paper sissors heart quaver quaverx2 blank
red yellow green
red yellow green
1false
1 2 3 4 50Please input a sensor number between 1 and 5
3 5
1 2
\ No newline at end of file