Skip to content

PicoRuby shell for ESP32. This project runs PicoRuby on ESP32 using picoruby-esp32.

License

Notifications You must be signed in to change notification settings

picoruby/R2P2-ESP32

Repository files navigation

R2P2-ESP32

This project runs PicoRuby on ESP32 and serves as an example of using picoruby-esp32.
Currently, it has only been tested on the M5Stamp C3 Mate.

Getting Started

Preparation

Set up your development environment using ESP-IDF by referring to this page.

Setup

Run the following shell script to build PicoRuby:

$ git clone https://github.com/picoruby/R2P2-ESP32.git

$ cd R2P2-ESP32
$ ./components/picoruby-esp32/install.sh

If you want to use several files on a device, store them under ./storage/home . The file named app.mrb or app.rb is automatically executed after device startup.

Looking for Contributors

I would like to enable the device to be recognized as a USB Mass Storage Class when connected to a PC, allowing files to be written via drag-and-drop, similar to R2P2.
If you are interested in contributing, feel free to submit a pull request or open an issue!

Build

Build the project using the idf.py command.

$ . $(YOUR_ESP_IDF_PATH)/export.sh
$ idf.py set-target $(YOUR_ESP_TARGET) # example: idf.py set-target esp32c3
$ idf.py build

Flash and Monitor

Flash the firmware and monitor the output using the idf.py command. PicoRuby Shell will start.

$ idf.py flash
$ idf.py monitor

Supported Environment

Currently, this project is tested in the following environment only:

  • Build OS:
    • macOS
  • Device:
    • ESP32-DevKitC(esp32)
    • M5Stamp C3 Mate(esp32c3)

License

R2P2-ESP32 is released under the MIT License.

About

PicoRuby shell for ESP32. This project runs PicoRuby on ESP32 using picoruby-esp32.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published