Skip to content

mruby-esp32/mruby-esp32-app-mirb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mruby-esp32-app-mirb

mirb (Embeddable Interactive Ruby Shell) for ESP32. Version française

screen

This project is made with reference to carsonmcdonald/mruby-esp32, many thanks.

Build with ESP-IDF

  1. This project requires ESP-IDF. Please setup it beforehand.

  2. Clone the code

    $ git clone --recursive https://github.com/mruby-esp32/mruby-esp32-app-mirb.git
    $ cd mruby-esp32-app-mirb
    
  3. Setup serial-port

    $ make menuconfig
    

    Serial flasher config > Default serial port > /dev/cu.xxx

  4. Build project

    $ make
    

Note: If you update ESP-IDF and sdkconfig is changed, please set CONFIG_FREERTOS_UNICORE=y.

Flash & Run

$ make flash monitor

Startup mirb, REPL (Read–eval–print loop)

Configuration

If you want to add mrbgems please edit components/mruby/build_config.rb.

MRuby::CrossBuild.new('esp32') do |conf|

  # ...(code)...

  # add wifi gem
  conf.gem :github => "mruby-esp32/mruby-esp32-wifi"
  # add gpio gem
  conf.gem :github => 'mruby-esp32/mruby-esp32-gpio'

end

About

mirb (Embeddable Interactive Ruby Shell) for ESP32

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published