tinkerforge 2.1.29 → 2.1.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tinkerforge/brick_dc.rb +2 -2
  3. data/lib/tinkerforge/brick_esp32.rb +49 -0
  4. data/lib/tinkerforge/brick_esp32_ethernet.rb +49 -0
  5. data/lib/tinkerforge/brick_hat.rb +33 -3
  6. data/lib/tinkerforge/brick_hat_zero.rb +2 -2
  7. data/lib/tinkerforge/brick_imu.rb +2 -2
  8. data/lib/tinkerforge/brick_imu_v2.rb +2 -2
  9. data/lib/tinkerforge/brick_master.rb +4 -4
  10. data/lib/tinkerforge/brick_red.rb +2 -2
  11. data/lib/tinkerforge/brick_servo.rb +2 -2
  12. data/lib/tinkerforge/brick_silent_stepper.rb +2 -2
  13. data/lib/tinkerforge/brick_stepper.rb +2 -2
  14. data/lib/tinkerforge/bricklet_accelerometer.rb +2 -2
  15. data/lib/tinkerforge/bricklet_accelerometer_v2.rb +2 -2
  16. data/lib/tinkerforge/bricklet_air_quality.rb +2 -2
  17. data/lib/tinkerforge/bricklet_ambient_light.rb +2 -2
  18. data/lib/tinkerforge/bricklet_ambient_light_v2.rb +2 -2
  19. data/lib/tinkerforge/bricklet_ambient_light_v3.rb +2 -2
  20. data/lib/tinkerforge/bricklet_analog_in.rb +2 -2
  21. data/lib/tinkerforge/bricklet_analog_in_v2.rb +2 -2
  22. data/lib/tinkerforge/bricklet_analog_in_v3.rb +2 -2
  23. data/lib/tinkerforge/bricklet_analog_out.rb +2 -2
  24. data/lib/tinkerforge/bricklet_analog_out_v2.rb +2 -2
  25. data/lib/tinkerforge/bricklet_analog_out_v3.rb +2 -2
  26. data/lib/tinkerforge/bricklet_barometer.rb +2 -2
  27. data/lib/tinkerforge/bricklet_barometer_v2.rb +2 -2
  28. data/lib/tinkerforge/bricklet_can.rb +2 -2
  29. data/lib/tinkerforge/bricklet_can_v2.rb +2 -2
  30. data/lib/tinkerforge/bricklet_co2.rb +2 -2
  31. data/lib/tinkerforge/bricklet_co2_v2.rb +2 -2
  32. data/lib/tinkerforge/bricklet_color.rb +2 -2
  33. data/lib/tinkerforge/bricklet_color_v2.rb +2 -2
  34. data/lib/tinkerforge/bricklet_compass.rb +2 -2
  35. data/lib/tinkerforge/bricklet_current12.rb +2 -2
  36. data/lib/tinkerforge/bricklet_current25.rb +2 -2
  37. data/lib/tinkerforge/bricklet_dc_v2.rb +2 -2
  38. data/lib/tinkerforge/bricklet_distance_ir.rb +2 -2
  39. data/lib/tinkerforge/bricklet_distance_ir_v2.rb +2 -2
  40. data/lib/tinkerforge/bricklet_distance_us.rb +2 -2
  41. data/lib/tinkerforge/bricklet_distance_us_v2.rb +2 -2
  42. data/lib/tinkerforge/bricklet_dmx.rb +3 -3
  43. data/lib/tinkerforge/bricklet_dual_button.rb +2 -2
  44. data/lib/tinkerforge/bricklet_dual_button_v2.rb +2 -2
  45. data/lib/tinkerforge/bricklet_dual_relay.rb +2 -2
  46. data/lib/tinkerforge/bricklet_dust_detector.rb +2 -2
  47. data/lib/tinkerforge/bricklet_e_paper_296x128.rb +32 -3
  48. data/lib/tinkerforge/bricklet_energy_monitor.rb +2 -2
  49. data/lib/tinkerforge/bricklet_gps.rb +2 -2
  50. data/lib/tinkerforge/bricklet_gps_v2.rb +3 -3
  51. data/lib/tinkerforge/bricklet_gps_v3.rb +593 -0
  52. data/lib/tinkerforge/bricklet_hall_effect.rb +2 -2
  53. data/lib/tinkerforge/bricklet_hall_effect_v2.rb +2 -2
  54. data/lib/tinkerforge/bricklet_humidity.rb +2 -2
  55. data/lib/tinkerforge/bricklet_humidity_v2.rb +2 -2
  56. data/lib/tinkerforge/bricklet_imu_v3.rb +2 -2
  57. data/lib/tinkerforge/bricklet_industrial_analog_out.rb +2 -2
  58. data/lib/tinkerforge/bricklet_industrial_analog_out_v2.rb +2 -2
  59. data/lib/tinkerforge/bricklet_industrial_counter.rb +2 -2
  60. data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +2 -2
  61. data/lib/tinkerforge/bricklet_industrial_digital_in_4_v2.rb +2 -2
  62. data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +2 -2
  63. data/lib/tinkerforge/bricklet_industrial_digital_out_4_v2.rb +2 -2
  64. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +2 -2
  65. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma_v2.rb +2 -2
  66. data/lib/tinkerforge/bricklet_industrial_dual_ac_relay.rb +2 -2
  67. data/lib/tinkerforge/bricklet_industrial_dual_analog_in.rb +2 -2
  68. data/lib/tinkerforge/bricklet_industrial_dual_analog_in_v2.rb +2 -2
  69. data/lib/tinkerforge/bricklet_industrial_dual_relay.rb +2 -2
  70. data/lib/tinkerforge/bricklet_industrial_ptc.rb +2 -2
  71. data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +2 -2
  72. data/lib/tinkerforge/bricklet_industrial_quad_relay_v2.rb +2 -2
  73. data/lib/tinkerforge/bricklet_io16.rb +2 -2
  74. data/lib/tinkerforge/bricklet_io16_v2.rb +2 -2
  75. data/lib/tinkerforge/bricklet_io4.rb +2 -2
  76. data/lib/tinkerforge/bricklet_io4_v2.rb +2 -2
  77. data/lib/tinkerforge/bricklet_isolator.rb +2 -2
  78. data/lib/tinkerforge/bricklet_joystick.rb +2 -2
  79. data/lib/tinkerforge/bricklet_joystick_v2.rb +2 -2
  80. data/lib/tinkerforge/bricklet_laser_range_finder.rb +2 -2
  81. data/lib/tinkerforge/bricklet_laser_range_finder_v2.rb +2 -2
  82. data/lib/tinkerforge/bricklet_lcd_128x64.rb +4 -2
  83. data/lib/tinkerforge/bricklet_lcd_16x2.rb +2 -2
  84. data/lib/tinkerforge/bricklet_lcd_20x4.rb +2 -2
  85. data/lib/tinkerforge/bricklet_led_strip.rb +2 -2
  86. data/lib/tinkerforge/bricklet_led_strip_v2.rb +2 -2
  87. data/lib/tinkerforge/bricklet_line.rb +2 -2
  88. data/lib/tinkerforge/bricklet_linear_poti.rb +3 -3
  89. data/lib/tinkerforge/bricklet_linear_poti_v2.rb +3 -3
  90. data/lib/tinkerforge/bricklet_load_cell.rb +2 -2
  91. data/lib/tinkerforge/bricklet_load_cell_v2.rb +2 -2
  92. data/lib/tinkerforge/bricklet_moisture.rb +2 -2
  93. data/lib/tinkerforge/bricklet_motion_detector.rb +2 -2
  94. data/lib/tinkerforge/bricklet_motion_detector_v2.rb +2 -2
  95. data/lib/tinkerforge/bricklet_motorized_linear_poti.rb +2 -2
  96. data/lib/tinkerforge/bricklet_multi_touch.rb +2 -2
  97. data/lib/tinkerforge/bricklet_multi_touch_v2.rb +2 -2
  98. data/lib/tinkerforge/bricklet_nfc.rb +21 -3
  99. data/lib/tinkerforge/bricklet_nfc_rfid.rb +2 -2
  100. data/lib/tinkerforge/bricklet_oled_128x64.rb +4 -2
  101. data/lib/tinkerforge/bricklet_oled_128x64_v2.rb +4 -2
  102. data/lib/tinkerforge/bricklet_oled_64x48.rb +4 -2
  103. data/lib/tinkerforge/bricklet_one_wire.rb +2 -2
  104. data/lib/tinkerforge/bricklet_outdoor_weather.rb +2 -2
  105. data/lib/tinkerforge/bricklet_particulate_matter.rb +2 -2
  106. data/lib/tinkerforge/bricklet_performance_dc.rb +2 -2
  107. data/lib/tinkerforge/bricklet_piezo_buzzer.rb +2 -2
  108. data/lib/tinkerforge/bricklet_piezo_speaker.rb +2 -2
  109. data/lib/tinkerforge/bricklet_piezo_speaker_v2.rb +2 -2
  110. data/lib/tinkerforge/bricklet_ptc.rb +2 -2
  111. data/lib/tinkerforge/bricklet_ptc_v2.rb +2 -2
  112. data/lib/tinkerforge/bricklet_real_time_clock.rb +2 -2
  113. data/lib/tinkerforge/bricklet_real_time_clock_v2.rb +2 -2
  114. data/lib/tinkerforge/bricklet_remote_switch.rb +2 -2
  115. data/lib/tinkerforge/bricklet_remote_switch_v2.rb +2 -2
  116. data/lib/tinkerforge/bricklet_rgb_led.rb +2 -2
  117. data/lib/tinkerforge/bricklet_rgb_led_button.rb +2 -2
  118. data/lib/tinkerforge/bricklet_rgb_led_matrix.rb +2 -2
  119. data/lib/tinkerforge/bricklet_rgb_led_v2.rb +2 -2
  120. data/lib/tinkerforge/bricklet_rotary_encoder.rb +2 -2
  121. data/lib/tinkerforge/bricklet_rotary_encoder_v2.rb +2 -2
  122. data/lib/tinkerforge/bricklet_rotary_poti.rb +2 -2
  123. data/lib/tinkerforge/bricklet_rotary_poti_v2.rb +2 -2
  124. data/lib/tinkerforge/bricklet_rs232.rb +2 -2
  125. data/lib/tinkerforge/bricklet_rs232_v2.rb +2 -2
  126. data/lib/tinkerforge/bricklet_rs485.rb +2 -2
  127. data/lib/tinkerforge/bricklet_segment_display_4x7.rb +2 -2
  128. data/lib/tinkerforge/bricklet_segment_display_4x7_v2.rb +2 -2
  129. data/lib/tinkerforge/bricklet_servo_v2.rb +2 -2
  130. data/lib/tinkerforge/bricklet_silent_stepper_v2.rb +2 -2
  131. data/lib/tinkerforge/bricklet_solid_state_relay.rb +2 -2
  132. data/lib/tinkerforge/bricklet_solid_state_relay_v2.rb +2 -2
  133. data/lib/tinkerforge/bricklet_sound_intensity.rb +2 -2
  134. data/lib/tinkerforge/bricklet_sound_pressure_level.rb +2 -2
  135. data/lib/tinkerforge/bricklet_temperature.rb +2 -2
  136. data/lib/tinkerforge/bricklet_temperature_ir.rb +2 -2
  137. data/lib/tinkerforge/bricklet_temperature_ir_v2.rb +2 -2
  138. data/lib/tinkerforge/bricklet_temperature_v2.rb +2 -2
  139. data/lib/tinkerforge/bricklet_thermal_imaging.rb +2 -2
  140. data/lib/tinkerforge/bricklet_thermocouple.rb +2 -2
  141. data/lib/tinkerforge/bricklet_thermocouple_v2.rb +2 -2
  142. data/lib/tinkerforge/bricklet_tilt.rb +2 -2
  143. data/lib/tinkerforge/bricklet_uv_light.rb +2 -2
  144. data/lib/tinkerforge/bricklet_uv_light_v2.rb +2 -2
  145. data/lib/tinkerforge/bricklet_voltage.rb +2 -2
  146. data/lib/tinkerforge/bricklet_voltage_current.rb +2 -2
  147. data/lib/tinkerforge/bricklet_voltage_current_v2.rb +2 -2
  148. data/lib/tinkerforge/bricklet_xmc1400_breakout.rb +2 -2
  149. data/lib/tinkerforge/device_display_names.rb +6 -3
  150. data/lib/tinkerforge/version.rb +1 -1
  151. metadata +5 -2
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2021-05-06. #
3
+ # This file was automatically generated on 2022-05-11. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.29 #
5
+ # Ruby Bindings Version 2.1.30 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2021-05-06. #
3
+ # This file was automatically generated on 2022-05-11. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.29 #
5
+ # Ruby Bindings Version 2.1.30 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2021-05-06. #
3
+ # This file was automatically generated on 2022-05-11. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.29 #
5
+ # Ruby Bindings Version 2.1.30 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -296,7 +296,7 @@ module Tinkerforge
296
296
  # the CALLBACK_FRAME callback and CALLBACK_FRAME_ERROR_COUNT callback are disabled.
297
297
  #
298
298
  # If you want to use the CALLBACK_FRAME callback you can enable it and disable
299
- # the cb:`Frame Available` callback at the same time. It becomes redundant in
299
+ # the CALLBACK_FRAME_AVAILABLE callback at the same time. It becomes redundant in
300
300
  # this case.
301
301
  def set_frame_callback_config(frame_started_callback_enabled, frame_available_callback_enabled, frame_callback_enabled, frame_error_count_callback_enabled)
302
302
  check_validity
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2021-05-06. #
3
+ # This file was automatically generated on 2022-05-11. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.29 #
5
+ # Ruby Bindings Version 2.1.30 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2021-05-06. #
3
+ # This file was automatically generated on 2022-05-11. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.29 #
5
+ # Ruby Bindings Version 2.1.30 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2021-05-06. #
3
+ # This file was automatically generated on 2022-05-11. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.29 #
5
+ # Ruby Bindings Version 2.1.30 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2021-05-06. #
3
+ # This file was automatically generated on 2022-05-11. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.29 #
5
+ # Ruby Bindings Version 2.1.30 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2021-05-06. #
3
+ # This file was automatically generated on 2022-05-11. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.29 #
5
+ # Ruby Bindings Version 2.1.30 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -35,6 +35,8 @@ module Tinkerforge
35
35
  FUNCTION_GET_UPDATE_MODE = 13 # :nodoc:
36
36
  FUNCTION_SET_DISPLAY_TYPE = 14 # :nodoc:
37
37
  FUNCTION_GET_DISPLAY_TYPE = 15 # :nodoc:
38
+ FUNCTION_SET_DISPLAY_DRIVER = 16 # :nodoc:
39
+ FUNCTION_GET_DISPLAY_DRIVER = 17 # :nodoc:
38
40
  FUNCTION_GET_SPITFP_ERROR_COUNT = 234 # :nodoc:
39
41
  FUNCTION_SET_BOOTLOADER_MODE = 235 # :nodoc:
40
42
  FUNCTION_GET_BOOTLOADER_MODE = 236 # :nodoc:
@@ -72,6 +74,8 @@ module Tinkerforge
72
74
  UPDATE_MODE_DELTA = 2 # :nodoc:
73
75
  DISPLAY_TYPE_BLACK_WHITE_RED = 0 # :nodoc:
74
76
  DISPLAY_TYPE_BLACK_WHITE_GRAY = 1 # :nodoc:
77
+ DISPLAY_DRIVER_SSD1675A = 0 # :nodoc:
78
+ DISPLAY_DRIVER_SSD1680 = 1 # :nodoc:
75
79
  BOOTLOADER_MODE_BOOTLOADER = 0 # :nodoc:
76
80
  BOOTLOADER_MODE_FIRMWARE = 1 # :nodoc:
77
81
  BOOTLOADER_MODE_BOOTLOADER_WAIT_FOR_REBOOT = 2 # :nodoc:
@@ -93,7 +97,7 @@ module Tinkerforge
93
97
  def initialize(uid, ipcon)
94
98
  super uid, ipcon, DEVICE_IDENTIFIER, DEVICE_DISPLAY_NAME
95
99
 
96
- @api_version = [2, 0, 0]
100
+ @api_version = [2, 0, 1]
97
101
 
98
102
  @response_expected[FUNCTION_DRAW] = RESPONSE_EXPECTED_FALSE
99
103
  @response_expected[FUNCTION_GET_DRAW_STATUS] = RESPONSE_EXPECTED_ALWAYS_TRUE
@@ -109,6 +113,8 @@ module Tinkerforge
109
113
  @response_expected[FUNCTION_GET_UPDATE_MODE] = RESPONSE_EXPECTED_ALWAYS_TRUE
110
114
  @response_expected[FUNCTION_SET_DISPLAY_TYPE] = RESPONSE_EXPECTED_FALSE
111
115
  @response_expected[FUNCTION_GET_DISPLAY_TYPE] = RESPONSE_EXPECTED_ALWAYS_TRUE
116
+ @response_expected[FUNCTION_SET_DISPLAY_DRIVER] = RESPONSE_EXPECTED_FALSE
117
+ @response_expected[FUNCTION_GET_DISPLAY_DRIVER] = RESPONSE_EXPECTED_ALWAYS_TRUE
112
118
  @response_expected[FUNCTION_GET_SPITFP_ERROR_COUNT] = RESPONSE_EXPECTED_ALWAYS_TRUE
113
119
  @response_expected[FUNCTION_SET_BOOTLOADER_MODE] = RESPONSE_EXPECTED_ALWAYS_TRUE
114
120
  @response_expected[FUNCTION_GET_BOOTLOADER_MODE] = RESPONSE_EXPECTED_ALWAYS_TRUE
@@ -236,6 +242,8 @@ module Tinkerforge
236
242
  #
237
243
  # This function writes the pixels into the black/white/red|gray pixel buffer, to draw the buffer
238
244
  # to the display use BrickletEPaper296x128#draw.
245
+ #
246
+ # The font conforms to code page 437.
239
247
  def draw_text(position_x, position_y, font, color, orientation, text)
240
248
  check_validity
241
249
 
@@ -330,6 +338,27 @@ module Tinkerforge
330
338
  send_request FUNCTION_GET_DISPLAY_TYPE, [], '', 9, 'C'
331
339
  end
332
340
 
341
+ # Sets the type of display driver. The Bricklet can currently support
342
+ # SSD1675A and SSD1680. This will be factory set
343
+ # during the flashing and testing phase. The value is saved in
344
+ # non-volatile memory and will stay after a power cycle.
345
+ #
346
+ # .. versionadded:: 2.0.3$nbsp;(Plugin)
347
+ def set_display_driver(display_driver)
348
+ check_validity
349
+
350
+ send_request FUNCTION_SET_DISPLAY_DRIVER, [display_driver], 'C', 8, ''
351
+ end
352
+
353
+ # Returns the e-paper display driver.
354
+ #
355
+ # .. versionadded:: 2.0.3$nbsp;(Plugin)
356
+ def get_display_driver
357
+ check_validity
358
+
359
+ send_request FUNCTION_GET_DISPLAY_DRIVER, [], '', 9, 'C'
360
+ end
361
+
333
362
  # Returns the error count for the communication between Brick and Bricklet.
334
363
  #
335
364
  # The errors are divided into
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2021-05-06. #
3
+ # This file was automatically generated on 2022-05-11. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.29 #
5
+ # Ruby Bindings Version 2.1.30 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2021-05-06. #
3
+ # This file was automatically generated on 2022-05-11. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.29 #
5
+ # Ruby Bindings Version 2.1.30 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2021-05-06. #
3
+ # This file was automatically generated on 2022-05-11. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.29 #
5
+ # Ruby Bindings Version 2.1.30 #
6
6
  # #
7
7
  # If you have a bugfix for this file and want to commit it, #
8
8
  # please fix the bug in the generator. You can find a link #
@@ -203,7 +203,7 @@ module Tinkerforge
203
203
  send_request FUNCTION_GET_COORDINATES, [], '', 18, 'L k L k'
204
204
  end
205
205
 
206
- # Returns if a fix is currently available as well as the, the number of
206
+ # Returns if a fix is currently available as well as the number of
207
207
  # satellites that are in view.
208
208
  #
209
209
  # There is also a :ref:`green LED <gps_v2_bricklet_fix_led>` on the Bricklet that