Skip to content
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

📜Micro-bit code #5049

Merged
merged 47 commits into from
Mar 5, 2024
Merged

📜Micro-bit code #5049

merged 47 commits into from
Mar 5, 2024

Conversation

rmagedon97
Copy link
Collaborator

@rmagedon97 rmagedon97 commented Jan 30, 2024

Work in progress for #4586

Created a sample MicroPython code
and a script to flash it to Micro:Bit.
@ghost
Copy link

ghost commented Jan 30, 2024

👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@rmagedon97 rmagedon97 self-assigned this Jan 30, 2024
@Felienne
Copy link
Member

Felienne commented Feb 1, 2024

Thanks for the partial work @rmagedon97! Really useful to see how to get code on the micro:bit.

To get you going in the transpiler I have added a parameter to the transpiler, so that we can output different code if we microbit variable is set to True.

Some steps for you to do now:

  • Update test test (I left a comment)
  • Then change print() in the higher levels, if you do not know how to, maybe @akseron can help
  • Add a "send to microbit" button to the front-end, if you don't know how to, ask @Annelein or @hasan-sh and connect the button to the transpiler
  • Test the button in the front-end and enjoy that we can run code on the micro:bit!!!

Steps later on:

  • Think of other micro:bit features that we can add to Hedy. Maybe something with the LED? That will require new code in Hedy, but at least you can make a few suggestions and look up the corresponding micro:bit code

@Felienne Felienne marked this pull request as draft February 1, 2024 14:48
@rmagedon97 rmagedon97 marked this pull request as ready for review February 29, 2024 15:16
Copy link
Member

@Felienne Felienne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be merged!

Copy link
Contributor

mergify bot commented Mar 5, 2024

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit a9bfdfa into main Mar 5, 2024
11 checks passed
@mergify mergify bot deleted the Micro-bit-example-code branch March 5, 2024 10:45
Copy link
Contributor

mergify bot commented Mar 5, 2024

Thank you for contributing! Your pull request is now going on the merge train (choo choo! Do not click update from main anymore, and be sure to allow changes to be pushed to your fork).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants