GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mruby-Forum/microbit-mruby

BranchesTags
Open more actions menu

Latest commit

 

History

510 Commits
510 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
source
source
 
 
utils
utils
 
 
.clang-format
.clang-format
 
 
.gitignore
.gitignore
 
 
.yotta_ignore
.yotta_ignore
 
 
AUTHORS
AUTHORS
 
 
CMakeLists.txt
CMakeLists.txt
 
 
Dockerfile
Dockerfile
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README-ja.md
README-ja.md
 
 
README.md
README.md
 
 
README.org.md
README.org.md
 
 
build.py
build.py
 
 
codal.ble.json
codal.ble.json
 
 
codal.json
codal.json
 
 
embed-mrb.rb
embed-mrb.rb
 
 
make-mruby-source.rb
make-mruby-source.rb
 
 
memo.md
memo.md
 
 
microbit.rb
microbit.rb
 
 
module.json
module.json
 
 
mrbapp.rb
mrbapp.rb
 
 

Repository files navigation

micro:bit mruby

日本語

What's micro:bit mruby

micro:bit mruby (microbit-mruby) aims to put an implementation of mruby 3.0 on BBC micro:bit v2

(micro:bit mruby is available on microbic:bit v2 only.)

microbit-mruby is developed by using microbit-v2-samples of Lancaster University

Prerequisites

To compile microbit-mruby out of the source code you need the following tools:

  • C Compiler (e.g. gcc or clang)
  • Ruby 2.7 or later (e.g. ruby or jruby)
  • Docker
  • git

How to get microbit-mruby

cd $WORKING_DIR
git clone https://github.com/mruby-Forum/microbit-mruby.git
cd microbit-mruby
git clone https://github.com/mruby/mruby.git -b 3.0.0 --depth 1
  • Please set $WORKING_DIR according to your environmnent

Generate the Docker image

make docker

You need to genarate the docker image for building microbit -mruby and it will take a few minutes.

Build mruby

cd mruby
rake MRUBY_CONFIG=../microbit.rb
cd ..
ruby make-mruby-source.rb

Note: The mruby build needs to be executed again when adding the mruby library (mrbgems)

Build microbit-mruby

just invoke make inside of the microvit-mruby directory.

make

When the build is completed successfully , MICROBIT.hex will be generated.

Run the application

Connect to the Micro:bit via USB cable ,then Micro:bit will be appeared as a folder. Copy the MICROBIT.hex to the micro:bit folder, microbit-mruby will be launched and runs the LED lightning application Lightnig LED sample code

Picture of lightnig LED application

L-chika

Create mruby application

The source code of the mruby application executed by microbit-mruby should be described in mrbapp.rb. If you have changed the contents of mrbapp.rb, please execute the above build microbit-mruby and run the application .

Note:If you change the mruby application, the micro: bit firmware will be built again

Available Ruby(mruby) class

  • Ruby embedded class
  • LED class

Note: We are preparing the details of the calss specification and planning to add more classes.

License

microbit-mruby is released under the MIT License. Please see LICENSE

About

No description, website, or topics provided.

Resources

Readme
MIT license
Activity
Custom properties

Stars

15 stars

Watchers

3 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.