Method: Tinkerforge::BrickletDistanceUSV2#write_firmware

Defined in:
lib/tinkerforge/bricklet_distance_us_v2.rb

#write_firmware(data) ⇒ Object

Writes 64 Bytes of firmware at the position as written by BrickletDistanceUSV2#set_write_firmware_pointer before. The firmware is written to flash every 4 chunks.

You can only write firmware in bootloader mode.

This function is used by Brick Viewer during flashing. It should not be necessary to call it in a normal user program.



246
247
248
249
250
# File 'lib/tinkerforge/bricklet_distance_us_v2.rb', line 246

def write_firmware(data)
  check_validity

  send_request FUNCTION_WRITE_FIRMWARE, [data], 'C64', 9, 'C'
end