class SpheroPwn::Commands::IsPageBlank
Asks the robot's bootloader if a flash page is blank.
This command is only valid when the robot is executing the bootloader.
Public Class Methods
new(page_number)
click to toggle source
@param {Number} page_number the flash page that the command will ask the
robot to look at
Calls superclass method
SpheroPwn::Command::new
# File lib/sphero_pwn/commands/is_page_blank.rb, line 7 def initialize(page_number) if page_number > 255 raise ArgumentError, "Page number #{page_number} exceeds 255" end super 0x01, 0x05, [page_number] end
Public Instance Methods
response_class()
click to toggle source
@see {SpheroPwn::Command#response_class}
# File lib/sphero_pwn/commands/is_page_blank.rb, line 15 def response_class SpheroPwn::Commands::IsPageBlank::Response end