Toastie Posted yesterday at 09:16 PM Posted yesterday at 09:16 PM 5 minutes ago, Bliss said: Do you have SBrick too? No, I don't. Maybe Ashi can spare one for some time? Best Thorsten Quote
Bliss Posted yesterday at 09:29 PM Author Posted yesterday at 09:29 PM 54 minutes ago, Ashi Valkoinen said: If you have Discord or any other platform, we can also do some screen-share talk about. I do have a discord ... I'll give you my username in PM. Quote
Bliss Posted 2 hours ago Author Posted 2 hours ago (edited) I added in Lego Blockly toolbox, in NXT new category named Messages, the Message WRITE and READ blocks. You can write/read messages of type TEXT or a NUMBER (Floating point) to mailbox of a running program in the NXT. Mailbox are numbered 1 to 10 in the dropdown to fit with NXT-G mailbox numbering but behind the scene, blockly uses 0-9... I tested both Read and Write for both Text and Number. Sometime the NXT does not detect to the MSG blockly sends, sometime it detects just fine... I don't know why. To read or write a number you must check the Number? checkbox otherwise the default is text. To write a number you can write you number in the default text field or use a Math Number block from the Math toolbox category. Here are some examples: Edited 2 hours ago by Bliss Quote
Toastie Posted 1 hour ago Posted 1 hour ago NICE! Mailbox messages are LEGO Blockly to NXT, and NXT to LBlockly, correct? As I can compose outgoing NXT messages also in BricxCC, I can read the reply in LBockly, right? Best Thorsten Quote
Bliss Posted 48 minutes ago Author Posted 48 minutes ago 31 minutes ago, Toastie said: As I can compose outgoing NXT messages also in BricxCC, I can read the reply in LBockly, right? Yes. I used NXT-G to make very basic NXT programs that I uploaded into the NXT brick to test the messaging. And from what I read, BricxCC uses the same FW as the official Lego NXT FW so the Direct Command protocol remains the same. Even the Enhanced NBC/NXC Firmware kept the original Direct Command protocol intact if I understand well. Quote
Toastie Posted 37 minutes ago Posted 37 minutes ago 10 minutes ago, Bliss said: Even the Enhanced NBC/NXC Firmware kept the original Direct Command protocol intact if I understand well. Can confirm: Yes, that worked/works as well! Cool. Best Thorsten Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.