-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test existing micro bit LED project and upgrade it to work with micro bit V2 if needed. #51
Comments
Dear Li, I found that the function of showing text on the LED matrix on micro:bit doesn't work. I tried to fix it by using the blocks in Microbit_Uart extension instead of Microbit_Led extension. But I didn't find the reason why the blocks in picture 1 do not work. May I ask whether it is ok to use the blocks in Microbit_Uart extension (picture 2) to realize the function of scrolling text on the LED matrix? It can achieve the expected result in the document. Thank you! Best regards, |
@xyyshh I would like to at least get a full understanding of why writeLEDText doesn't work. I will take a look and let you know. |
@ellelili2025 Hi Li. I find a way to make writeLEDText work by editing the source code. I changed two parts of the file "Microbit_Led.java" at appinventor-extensions/appinventor/components/src/com/bbc/microbit/profile/.
Initial code:
Revised code:
Initial code:
Revised code:
I think the main bug is that the BLE extension cannot directly send strings to microbit. Instead, it can send characters by sending bytes. That is also how the microbit Uart extension works. I tried to find why function "ExWriteStringValuesWithResponse()" in BLE extension doesn't work but I still have no idea about it. I generated an .aix file from the revised code and tested it in app inventor. It works well to scroll text on micro:bit with no need to change the app inventor code and the tutorial. The initial code, revised code, .aix file are also attached: code_and_.aix.zip I'm not sure whether my changes to the code are proper, while it works well. Could you please take a look at my code? Thank you very much. Regards, |
@ellelili2025 Hi Li. I've tested the LED extension on microbit V1. For the writeLEDText function, the V1 also doesn't work with the original extension, while it works well with modified version. The other functions works well. Thanks. |
Please make sure the attached micro bit LED project work with latest micro bit V2.
MicrobitLED.aia.zip
Instructions:
http://iot.appinventor.mit.edu/assets/howtos/MIT_App_Inventor_Microbit_LED.pdf
The text was updated successfully, but these errors were encountered: