Shell class of PicoRuby

Type aliases

rtc_t

PCF8523

device_t

GPIO | ADC | I2C | SPI | UART | PWM

Singleton methods

bootstrap

Shell.bootstrap(String file) -> bool

ensure_system_file

Shell.ensure_system_file(String path, String code, ?(Integer | nil) crc) -> void

get_device

Shell.get_device(:gpio, String | Symbol name) -> GPIO
Shell.get_device(:adc,  String | Symbol name) -> ADC
Shell.get_device(:i2c,  String | Symbol name) -> I2C
Shell.get_device(:spi,  String | Symbol name) -> SPI
Shell.get_device(:uart, String | Symbol name) -> UART
Shell.get_device(:pwm,  String | Symbol name) -> PWM

new

Shell.new(?clean: bool) -> void

next_executable

Shell.next_executable-> {code: String, path: String, crc: Integer}

setup_root_volume

Shell.setup_root_volume(Symbol drive, ?label: String) -> void

setup_rtc

Shell.setup_rtc(rtc_t trc) -> void

setup_sdcard

Shell.setup_sdcard(SPI spi) -> void

setup_system_files

Shell.setup_system_files(?(String | nil) root, ?force: bool) -> void

simple_question

Shell.simple_question(String question) { (String answer) -> boolish } -> void

Instance methods

run_irb

instance.run_irb-> void

run_shell

instance.run_shell-> void
instance.show_logo-> nil

start

instance.start(?Symbol mode) -> nil
Tags: class