Class: Pinoccio::EventsCommands

Inherits:
CommandCollection show all
Defined in:
lib/commands.rb

Instance Method Summary collapse

Methods inherited from CommandCollection

#execute, #get, #initialize, #run

Constructor Details

This class inherits a constructor from Pinoccio::CommandCollection

Instance Method Details

#set_cycle(digital_ms = 50, analogue_ms = 60_000, peripheral_ms = 60_000) ⇒ Object



295
296
297
# File 'lib/commands.rb', line 295

def set_cycle(digital_ms=50, analogue_ms=60_000, peripheral_ms=60_000)
  execute("events.setcycle(#{digital_ms}, #{analogue_ms}, #{peripheral_ms})")
end

#startObject



287
288
289
# File 'lib/commands.rb', line 287

def start
  execute("events.start")
end

#stopObject



291
292
293
# File 'lib/commands.rb', line 291

def stop
  execute("events.stop")
end