tinkerforge 2.1.21 → 2.1.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +5 -5
  2. data/lib/tinkerforge/brick_dc.rb +2 -2
  3. data/lib/tinkerforge/brick_hat.rb +256 -0
  4. data/lib/tinkerforge/brick_hat_zero.rb +196 -0
  5. data/lib/tinkerforge/brick_imu.rb +2 -2
  6. data/lib/tinkerforge/brick_imu_v2.rb +2 -2
  7. data/lib/tinkerforge/brick_master.rb +12 -9
  8. data/lib/tinkerforge/brick_red.rb +2 -2
  9. data/lib/tinkerforge/brick_servo.rb +2 -2
  10. data/lib/tinkerforge/brick_silent_stepper.rb +2 -2
  11. data/lib/tinkerforge/brick_stepper.rb +2 -2
  12. data/lib/tinkerforge/bricklet_accelerometer.rb +2 -2
  13. data/lib/tinkerforge/bricklet_accelerometer_v2.rb +16 -6
  14. data/lib/tinkerforge/bricklet_air_quality.rb +59 -3
  15. data/lib/tinkerforge/bricklet_ambient_light.rb +2 -2
  16. data/lib/tinkerforge/bricklet_ambient_light_v2.rb +2 -2
  17. data/lib/tinkerforge/bricklet_ambient_light_v3.rb +3 -3
  18. data/lib/tinkerforge/bricklet_analog_in.rb +2 -2
  19. data/lib/tinkerforge/bricklet_analog_in_v2.rb +2 -2
  20. data/lib/tinkerforge/bricklet_analog_in_v3.rb +2 -2
  21. data/lib/tinkerforge/bricklet_analog_out.rb +2 -2
  22. data/lib/tinkerforge/bricklet_analog_out_v2.rb +2 -2
  23. data/lib/tinkerforge/bricklet_analog_out_v3.rb +2 -2
  24. data/lib/tinkerforge/bricklet_barometer.rb +2 -2
  25. data/lib/tinkerforge/bricklet_barometer_v2.rb +2 -2
  26. data/lib/tinkerforge/bricklet_can.rb +2 -2
  27. data/lib/tinkerforge/bricklet_can_v2.rb +2 -2
  28. data/lib/tinkerforge/bricklet_co2.rb +2 -2
  29. data/lib/tinkerforge/bricklet_co2_v2.rb +479 -0
  30. data/lib/tinkerforge/bricklet_color.rb +2 -2
  31. data/lib/tinkerforge/bricklet_current12.rb +2 -2
  32. data/lib/tinkerforge/bricklet_current25.rb +2 -2
  33. data/lib/tinkerforge/bricklet_distance_ir.rb +2 -2
  34. data/lib/tinkerforge/bricklet_distance_ir_v2.rb +3 -3
  35. data/lib/tinkerforge/bricklet_distance_us.rb +2 -2
  36. data/lib/tinkerforge/bricklet_dmx.rb +2 -2
  37. data/lib/tinkerforge/bricklet_dual_button.rb +2 -2
  38. data/lib/tinkerforge/bricklet_dual_button_v2.rb +2 -2
  39. data/lib/tinkerforge/bricklet_dual_relay.rb +5 -3
  40. data/lib/tinkerforge/bricklet_dust_detector.rb +2 -2
  41. data/lib/tinkerforge/bricklet_e_paper_296x128.rb +600 -0
  42. data/lib/tinkerforge/bricklet_gps.rb +2 -2
  43. data/lib/tinkerforge/bricklet_gps_v2.rb +2 -2
  44. data/lib/tinkerforge/bricklet_hall_effect.rb +2 -2
  45. data/lib/tinkerforge/bricklet_hall_effect_v2.rb +333 -0
  46. data/lib/tinkerforge/bricklet_humidity.rb +2 -2
  47. data/lib/tinkerforge/bricklet_humidity_v2.rb +2 -2
  48. data/lib/tinkerforge/bricklet_industrial_analog_out.rb +2 -2
  49. data/lib/tinkerforge/bricklet_industrial_analog_out_v2.rb +2 -2
  50. data/lib/tinkerforge/bricklet_industrial_counter.rb +2 -2
  51. data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +3 -3
  52. data/lib/tinkerforge/bricklet_industrial_digital_in_4_v2.rb +2 -2
  53. data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +9 -4
  54. data/lib/tinkerforge/bricklet_industrial_digital_out_4_v2.rb +12 -2
  55. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +2 -2
  56. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma_v2.rb +2 -2
  57. data/lib/tinkerforge/bricklet_industrial_dual_analog_in.rb +2 -2
  58. data/lib/tinkerforge/bricklet_industrial_dual_analog_in_v2.rb +2 -2
  59. data/lib/tinkerforge/bricklet_industrial_dual_relay.rb +6 -3
  60. data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +9 -4
  61. data/lib/tinkerforge/bricklet_industrial_quad_relay_v2.rb +7 -2
  62. data/lib/tinkerforge/bricklet_io16.rb +11 -2
  63. data/lib/tinkerforge/bricklet_io16_v2.rb +10 -2
  64. data/lib/tinkerforge/bricklet_io4.rb +10 -2
  65. data/lib/tinkerforge/bricklet_io4_v2.rb +15 -2
  66. data/lib/tinkerforge/bricklet_isolator.rb +2 -2
  67. data/lib/tinkerforge/bricklet_joystick.rb +9 -9
  68. data/lib/tinkerforge/bricklet_joystick_v2.rb +294 -0
  69. data/lib/tinkerforge/bricklet_laser_range_finder.rb +3 -3
  70. data/lib/tinkerforge/bricklet_laser_range_finder_v2.rb +447 -0
  71. data/lib/tinkerforge/bricklet_lcd_128x64.rb +2 -2
  72. data/lib/tinkerforge/bricklet_lcd_16x2.rb +2 -2
  73. data/lib/tinkerforge/bricklet_lcd_20x4.rb +2 -2
  74. data/lib/tinkerforge/bricklet_led_strip.rb +2 -2
  75. data/lib/tinkerforge/bricklet_led_strip_v2.rb +2 -2
  76. data/lib/tinkerforge/bricklet_line.rb +2 -2
  77. data/lib/tinkerforge/bricklet_linear_poti.rb +2 -2
  78. data/lib/tinkerforge/bricklet_linear_poti_v2.rb +259 -0
  79. data/lib/tinkerforge/bricklet_load_cell.rb +2 -2
  80. data/lib/tinkerforge/bricklet_load_cell_v2.rb +2 -2
  81. data/lib/tinkerforge/bricklet_moisture.rb +2 -2
  82. data/lib/tinkerforge/bricklet_motion_detector.rb +3 -3
  83. data/lib/tinkerforge/bricklet_motion_detector_v2.rb +5 -7
  84. data/lib/tinkerforge/bricklet_motorized_linear_poti.rb +2 -2
  85. data/lib/tinkerforge/bricklet_multi_touch.rb +2 -2
  86. data/lib/tinkerforge/bricklet_nfc.rb +2 -2
  87. data/lib/tinkerforge/bricklet_nfc_rfid.rb +2 -2
  88. data/lib/tinkerforge/bricklet_oled_128x64.rb +2 -2
  89. data/lib/tinkerforge/bricklet_oled_128x64_v2.rb +2 -2
  90. data/lib/tinkerforge/bricklet_oled_64x48.rb +2 -2
  91. data/lib/tinkerforge/bricklet_one_wire.rb +2 -2
  92. data/lib/tinkerforge/bricklet_outdoor_weather.rb +14 -2
  93. data/lib/tinkerforge/bricklet_particulate_matter.rb +2 -2
  94. data/lib/tinkerforge/bricklet_piezo_buzzer.rb +2 -2
  95. data/lib/tinkerforge/bricklet_piezo_speaker.rb +2 -2
  96. data/lib/tinkerforge/bricklet_piezo_speaker_v2.rb +311 -0
  97. data/lib/tinkerforge/bricklet_ptc.rb +2 -2
  98. data/lib/tinkerforge/bricklet_ptc_v2.rb +2 -2
  99. data/lib/tinkerforge/bricklet_real_time_clock.rb +2 -2
  100. data/lib/tinkerforge/bricklet_real_time_clock_v2.rb +2 -2
  101. data/lib/tinkerforge/bricklet_remote_switch.rb +2 -2
  102. data/lib/tinkerforge/bricklet_remote_switch_v2.rb +3 -3
  103. data/lib/tinkerforge/bricklet_rgb_led.rb +4 -4
  104. data/lib/tinkerforge/bricklet_rgb_led_button.rb +2 -2
  105. data/lib/tinkerforge/bricklet_rgb_led_matrix.rb +2 -2
  106. data/lib/tinkerforge/bricklet_rgb_led_v2.rb +203 -0
  107. data/lib/tinkerforge/bricklet_rotary_encoder.rb +2 -2
  108. data/lib/tinkerforge/bricklet_rotary_encoder_v2.rb +2 -2
  109. data/lib/tinkerforge/bricklet_rotary_poti.rb +2 -2
  110. data/lib/tinkerforge/bricklet_rs232.rb +2 -2
  111. data/lib/tinkerforge/bricklet_rs232_v2.rb +2 -2
  112. data/lib/tinkerforge/bricklet_rs485.rb +2 -2
  113. data/lib/tinkerforge/bricklet_segment_display_4x7.rb +2 -2
  114. data/lib/tinkerforge/bricklet_segment_display_4x7_v2.rb +309 -0
  115. data/lib/tinkerforge/bricklet_solid_state_relay.rb +3 -3
  116. data/lib/tinkerforge/bricklet_solid_state_relay_v2.rb +3 -3
  117. data/lib/tinkerforge/bricklet_sound_intensity.rb +2 -2
  118. data/lib/tinkerforge/bricklet_sound_pressure_level.rb +2 -2
  119. data/lib/tinkerforge/bricklet_temperature.rb +2 -2
  120. data/lib/tinkerforge/bricklet_temperature_ir.rb +2 -2
  121. data/lib/tinkerforge/bricklet_temperature_ir_v2.rb +5 -2
  122. data/lib/tinkerforge/bricklet_temperature_v2.rb +2 -2
  123. data/lib/tinkerforge/bricklet_thermal_imaging.rb +4 -4
  124. data/lib/tinkerforge/bricklet_thermocouple.rb +2 -2
  125. data/lib/tinkerforge/bricklet_thermocouple_v2.rb +2 -2
  126. data/lib/tinkerforge/bricklet_tilt.rb +2 -2
  127. data/lib/tinkerforge/bricklet_uv_light.rb +2 -2
  128. data/lib/tinkerforge/bricklet_uv_light_v2.rb +2 -2
  129. data/lib/tinkerforge/bricklet_voltage.rb +2 -2
  130. data/lib/tinkerforge/bricklet_voltage_current.rb +2 -2
  131. data/lib/tinkerforge/bricklet_voltage_current_v2.rb +2 -2
  132. data/lib/tinkerforge/ip_connection.rb +21 -4
  133. data/lib/tinkerforge/version.rb +1 -1
  134. metadata +14 -3
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 #
@@ -59,11 +59,13 @@ module Tinkerforge
59
59
  # low.
60
60
  #
61
61
  # If no groups are used (see BrickletIndustrialDigitalOut4#set_group), the pins correspond to the
62
- # markings on the Digital Out 4 Bricklet.
62
+ # markings on the Industrial Digital Out 4 Bricklet.
63
63
  #
64
64
  # If groups are used, the pins correspond to the element in the group.
65
65
  # Element 1 in the group will get pins 0-3, element 2 pins 4-7, element 3
66
66
  # pins 8-11 and element 4 pins 12-15.
67
+ #
68
+ # All running monoflop timers will be aborted if this function is called.
67
69
  def set_value(value_mask)
68
70
  send_request FUNCTION_SET_VALUE, [value_mask], 'S', 0, ''
69
71
  end
@@ -143,11 +145,14 @@ module Tinkerforge
143
145
  # low the other pins remain untouched.
144
146
  #
145
147
  # If no groups are used (see BrickletIndustrialDigitalOut4#set_group), the pins correspond to the
146
- # markings on the Digital Out 4 Bricklet.
148
+ # markings on the Industrial Digital Out 4 Bricklet.
147
149
  #
148
150
  # If groups are used, the pins correspond to the element in the group.
149
151
  # Element 1 in the group will get pins 0-3, element 2 pins 4-7, element 3
150
152
  # pins 8-11 and element 4 pins 12-15.
153
+ #
154
+ # Running monoflop timers for the selected pins will be aborted if this function
155
+ # is called.
151
156
  def set_selected_values(selection_mask, value_mask)
152
157
  send_request FUNCTION_SET_SELECTED_VALUES, [selection_mask, value_mask], 'S S', 0, ''
153
158
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 #
@@ -100,6 +100,8 @@ module Tinkerforge
100
100
  #
101
101
  # Use BrickletIndustrialDigitalOut4V2#set_selected_value to change only one output channel state.
102
102
  #
103
+ # All running monoflop timers and PWMs will be aborted if this function is called.
104
+ #
103
105
  # For example: (True, True, False, False) will turn the channels 0-1 high and the
104
106
  # channels 2-3 low.
105
107
  def set_value(value)
@@ -112,6 +114,9 @@ module Tinkerforge
112
114
  end
113
115
 
114
116
  # Sets the output value of a specific channel without affecting the other channels.
117
+ #
118
+ # A running monoflop timer or PWM for the specified channel will be aborted if this
119
+ # function is called.
115
120
  def set_selected_value(channel, value)
116
121
  send_request FUNCTION_SET_SELECTED_VALUE, [channel, value], 'C ?', 0, ''
117
122
  end
@@ -123,6 +128,8 @@ module Tinkerforge
123
128
  # If this function is called with the parameters (true, 1500):
124
129
  # The channel will turn on and in 1.5s it will turn off again.
125
130
  #
131
+ # A PWM for the selected channel will be aborted if this function is called.
132
+ #
126
133
  # A monoflop can be used as a failsafe mechanism. For example: Lets assume you
127
134
  # have a RS485 bus and a IO-4 Bricklet is connected to one of the slave
128
135
  # stacks. You can now call this function every second, with a time parameter
@@ -165,6 +172,9 @@ module Tinkerforge
165
172
  # Out 4 Bricklet 2.0 has a rise time and fall time of 11.5us (each) at 24V. So the maximum
166
173
  # useful frequency value is about 400000 (40kHz).
167
174
  #
175
+ # A running monoflop timer for the given channel will be aborted if this function
176
+ # is called.
177
+ #
168
178
  # The default values are 0, 0.
169
179
  def set_pwm_configuration(channel, frequency, duty_cycle)
170
180
  send_request FUNCTION_SET_PWM_CONFIGURATION, [channel, frequency, duty_cycle], 'C L S', 0, ''
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 #
@@ -90,7 +90,7 @@ module Tinkerforge
90
90
  # of the other relay, you can get the state with BrickletIndustrialDualRelay#get_value or you
91
91
  # can use BrickletIndustrialDualRelay#set_selected_value.
92
92
  #
93
- # Running monoflop timers will be overwritten if this function is called.
93
+ # All running monoflop timers will be aborted if this function is called.
94
94
  #
95
95
  # The default value is (*false*, *false*).
96
96
  def set_value(channel0, channel1)
@@ -131,6 +131,9 @@ module Tinkerforge
131
131
  # Sets the state of the selected relay (0 or 1), *true* means on and *false*
132
132
  # means off.
133
133
  #
134
+ # A running monoflop timer for the selected relay will be aborted if this function
135
+ # is called.
136
+ #
134
137
  # The other relay remains untouched.
135
138
  def set_selected_value(channel, value)
136
139
  send_request FUNCTION_SET_SELECTED_VALUE, [channel, value], 'C ?', 0, ''
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 #
@@ -59,11 +59,13 @@ module Tinkerforge
59
59
  # the other pins.
60
60
  #
61
61
  # If no groups are used (see BrickletIndustrialQuadRelay#set_group), the pins correspond to the
62
- # markings on the Quad Relay Bricklet.
62
+ # markings on the Industrial Quad Relay Bricklet.
63
63
  #
64
64
  # If groups are used, the pins correspond to the element in the group.
65
65
  # Element 1 in the group will get pins 0-3, element 2 pins 4-7, element 3
66
66
  # pins 8-11 and element 4 pins 12-15.
67
+ #
68
+ # All running monoflop timers will be aborted if this function is called.
67
69
  def set_value(value_mask)
68
70
  send_request FUNCTION_SET_VALUE, [value_mask], 'S', 0, ''
69
71
  end
@@ -143,11 +145,14 @@ module Tinkerforge
143
145
  # pin 0, open the relay of pin 1 and leave the others untouched.
144
146
  #
145
147
  # If no groups are used (see BrickletIndustrialQuadRelay#set_group), the pins correspond to the
146
- # markings on the Quad Relay Bricklet.
148
+ # markings on the Industrial Quad Relay Bricklet.
147
149
  #
148
150
  # If groups are used, the pins correspond to the element in the group.
149
151
  # Element 1 in the group will get pins 0-3, element 2 pins 4-7, element 3
150
152
  # pins 8-11 and element 4 pins 12-15.
153
+ #
154
+ # Running monoflop timers for the selected relays will be aborted if this function
155
+ # is called.
151
156
  def set_selected_values(selection_mask, value_mask)
152
157
  send_request FUNCTION_SET_SELECTED_VALUES, [selection_mask, value_mask], 'S S', 0, ''
153
158
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 #
@@ -95,6 +95,8 @@ module Tinkerforge
95
95
  # relay and a value of *false* opens the relay.
96
96
  #
97
97
  # Use BrickletIndustrialQuadRelayV2#set_selected_value to only change one relay.
98
+ #
99
+ # All running monoflop timers will be aborted if this function is called.
98
100
  def set_value(value)
99
101
  send_request FUNCTION_SET_VALUE, [value], '?4', 0, ''
100
102
  end
@@ -136,6 +138,9 @@ module Tinkerforge
136
138
 
137
139
  # Sets the output value of the specified channel without affecting the other
138
140
  # channels.
141
+ #
142
+ # A running monoflop timer for the specified channel will be aborted if this
143
+ # function is called.
139
144
  def set_selected_value(channel, value)
140
145
  send_request FUNCTION_SET_SELECTED_VALUE, [channel, value], 'C ?', 0, ''
141
146
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 #
@@ -91,6 +91,9 @@ module Tinkerforge
91
91
  # For example: The value 15 or 0b00001111 will turn the pins 0-3 high and the
92
92
  # pins 4-7 low for the specified port.
93
93
  #
94
+ # All running monoflop timers of the given port will be aborted if this function
95
+ # is called.
96
+ #
94
97
  # .. note::
95
98
  # This function does nothing for pins that are configured as input.
96
99
  # Pull-up resistors can be switched on with BrickletIO16#set_port_configuration.
@@ -121,6 +124,9 @@ module Tinkerforge
121
124
  # * ('b', 3, 'o', false) or ('b', 0b00000011, 'o', false) will set pins 0 and 1 of port B as output low.
122
125
  # * ('b', 4, 'o', true) or ('b', 0b00000100, 'o', true) will set pin 2 of port B as output high.
123
126
  #
127
+ # Running monoflop timers for the selected pins will be aborted if this
128
+ # function is called.
129
+ #
124
130
  # The default configuration is input with pull-up.
125
131
  def set_port_configuration(port, selection_mask, direction, value)
126
132
  send_request FUNCTION_SET_PORT_CONFIGURATION, [port, selection_mask, direction, value], 'k C k ?', 0, ''
@@ -213,6 +219,9 @@ module Tinkerforge
213
219
  # For example: The parameters ('a', 192, 128) or ('a', 0b11000000, 0b10000000)
214
220
  # will turn pin 7 high and pin 6 low on port A, pins 0-6 will remain untouched.
215
221
  #
222
+ # Running monoflop timers for the selected pins will be aborted if this
223
+ # function is called.
224
+ #
216
225
  # .. note::
217
226
  # This function does nothing for pins that are configured as input.
218
227
  # Pull-up resistors can be switched on with BrickletIO16#set_port_configuration.
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 #
@@ -132,6 +132,8 @@ module Tinkerforge
132
132
  # For example: (True, True, False, False, ..., False) will turn the channels 0-1
133
133
  # high and the channels 2-15 low.
134
134
  #
135
+ # All running monoflop timers will be aborted if this function is called.
136
+ #
135
137
  # .. note::
136
138
  # This function does nothing for channels that are configured as input. Pull-up
137
139
  # resistors can be switched on with BrickletIO16V2#set_configuration.
@@ -148,6 +150,9 @@ module Tinkerforge
148
150
 
149
151
  # Sets the output value of a specific channel without affecting the other channels.
150
152
  #
153
+ # A running monoflop timer for the specific channel will be aborted if this
154
+ # function is called.
155
+ #
151
156
  # .. note::
152
157
  # This function does nothing for channels that are configured as input. Pull-up
153
158
  # resistors can be switched on with BrickletIO16V2#set_configuration.
@@ -171,6 +176,9 @@ module Tinkerforge
171
176
  # * (2, 'o', true) will set channel-2 as output high.
172
177
  # * (3, 'o', false) will set channel-3 as output low.
173
178
  #
179
+ # A running monoflop timer for the specific channel will be aborted if this
180
+ # function is called.
181
+ #
174
182
  # The default configuration is input with pull-up.
175
183
  def set_configuration(channel, direction, value)
176
184
  send_request FUNCTION_SET_CONFIGURATION, [channel, direction, value], 'C k ?', 0, ''
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 #
@@ -90,6 +90,8 @@ module Tinkerforge
90
90
  # For example: The value 3 or 0b0011 will turn the pins 0-1 high and the
91
91
  # pins 2-3 low.
92
92
  #
93
+ # All running monoflop timers will be aborted if this function is called.
94
+ #
93
95
  # .. note::
94
96
  # This function does nothing for pins that are configured as input.
95
97
  # Pull-up resistors can be switched on with BrickletIO4#set_configuration.
@@ -120,6 +122,9 @@ module Tinkerforge
120
122
  # * (3, 'o', false) or (0b0011, 'o', false) will set pins 0 and 1 as output low.
121
123
  # * (4, 'o', true) or (0b0100, 'o', true) will set pin 2 of as output high.
122
124
  #
125
+ # Running monoflop timers for the specified pins will be aborted if this
126
+ # function is called.
127
+ #
123
128
  # The default configuration is input with pull-up.
124
129
  def set_configuration(selection_mask, direction, value)
125
130
  send_request FUNCTION_SET_CONFIGURATION, [selection_mask, direction, value], 'C k ?', 0, ''
@@ -211,6 +216,9 @@ module Tinkerforge
211
216
  # For example: The parameters (9, 4) or (0b0110, 0b0100) will turn
212
217
  # pin 1 low and pin 2 high, pin 0 and 3 will remain untouched.
213
218
  #
219
+ # Running monoflop timers for the selected pins will be aborted if this
220
+ # function is called.
221
+ #
214
222
  # .. note::
215
223
  # This function does nothing for pins that are configured as input.
216
224
  # Pull-up resistors can be switched on with BrickletIO4#set_configuration.
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 #
@@ -136,6 +136,8 @@ module Tinkerforge
136
136
  # For example: (True, True, False, False) will turn the channels 0-1 high and the
137
137
  # channels 2-3 low.
138
138
  #
139
+ # All running monoflop timers and PWMs will be aborted if this function is called.
140
+ #
139
141
  # .. note::
140
142
  # This function does nothing for channels that are configured as input. Pull-up
141
143
  # resistors can be switched on with BrickletIO4V2#set_configuration.
@@ -152,6 +154,9 @@ module Tinkerforge
152
154
 
153
155
  # Sets the output value of a specific channel without affecting the other channels.
154
156
  #
157
+ # A running monoflop timer or PWM for the specific channel will be aborted if this
158
+ # function is called.
159
+ #
155
160
  # .. note::
156
161
  # This function does nothing for channels that are configured as input. Pull-up
157
162
  # resistors can be switched on with BrickletIO4V2#set_configuration.
@@ -175,6 +180,9 @@ module Tinkerforge
175
180
  # * (2, 'o', true) will set channel 2 as output high.
176
181
  # * (3, 'o', false) will set channel 3 as output low.
177
182
  #
183
+ # A running monoflop timer or PWM for the specific channel will be aborted if this
184
+ # function is called.
185
+ #
178
186
  # The default configuration is input with pull-up.
179
187
  def set_configuration(channel, direction, value)
180
188
  send_request FUNCTION_SET_CONFIGURATION, [channel, direction, value], 'C k ?', 0, ''
@@ -236,6 +244,8 @@ module Tinkerforge
236
244
  # If this function is called with the parameters (true, 1500):
237
245
  # The channel will turn on and in 1.5s it will turn off again.
238
246
  #
247
+ # A PWM for the selected channel will be aborted if this function is called.
248
+ #
239
249
  # A monoflop can be used as a failsafe mechanism. For example: Lets assume you
240
250
  # have a RS485 bus and a IO-4 Bricklet 2.0 is connected to one of the slave
241
251
  # stacks. You can now call this function every second, with a time parameter
@@ -300,6 +310,9 @@ module Tinkerforge
300
310
  # The maximum frequency value is 320000000 (32MHz). The maximum duty cycle value is
301
311
  # 10000 (100%).
302
312
  #
313
+ # A running monoflop timer for the given channel will be aborted if this function
314
+ # is called.
315
+ #
303
316
  # The default values are 0, 0.
304
317
  def set_pwm_configuration(channel, frequency, duty_cycle)
305
318
  send_request FUNCTION_SET_PWM_CONFIGURATION, [channel, frequency, duty_cycle], 'C L S', 0, ''
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 2019-01-29. #
3
+ # This file was automatically generated on 2019-05-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.21 #
5
+ # Ruby Bindings Version 2.1.22 #
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 #
@@ -17,7 +17,7 @@ module Tinkerforge
17
17
 
18
18
  # This callback is triggered periodically with the period that is set by
19
19
  # BrickletJoystick#set_position_callback_period. The parameter is the position of the
20
- # Joystick.
20
+ # joystick.
21
21
  #
22
22
  # The CALLBACK_POSITION callback is only triggered if the position has changed since the
23
23
  # last triggering.
@@ -25,7 +25,7 @@ module Tinkerforge
25
25
 
26
26
  # This callback is triggered periodically with the period that is set by
27
27
  # BrickletJoystick#set_analog_value_callback_period. The parameters are the
28
- # analog values of the Joystick.
28
+ # analog values of the joystick.
29
29
  #
30
30
  # The CALLBACK_ANALOG_VALUE callback is only triggered if the values have changed
31
31
  # since the last triggering.
@@ -33,7 +33,7 @@ module Tinkerforge
33
33
 
34
34
  # This callback is triggered when the threshold as set by
35
35
  # BrickletJoystick#set_position_callback_threshold is reached.
36
- # The parameters are the position of the Joystick.
36
+ # The parameters are the position of the joystick.
37
37
  #
38
38
  # If the threshold keeps being reached, the callback is triggered periodically
39
39
  # with the period as set by BrickletJoystick#set_debounce_period.
@@ -41,7 +41,7 @@ module Tinkerforge
41
41
 
42
42
  # This callback is triggered when the threshold as set by
43
43
  # BrickletJoystick#set_analog_value_callback_threshold is reached.
44
- # The parameters are the analog values of the Joystick.
44
+ # The parameters are the analog values of the joystick.
45
45
  #
46
46
  # If the threshold keeps being reached, the callback is triggered periodically
47
47
  # with the period as set by BrickletJoystick#set_debounce_period.
@@ -107,7 +107,7 @@ module Tinkerforge
107
107
 
108
108
  end
109
109
 
110
- # Returns the position of the Joystick. The value ranges between -100 and
110
+ # Returns the position of the joystick. The value ranges between -100 and
111
111
  # 100 for both axis. The middle position of the joystick is x=0, y=0. The
112
112
  # returned values are averaged and calibrated (see BrickletJoystick#calibrate).
113
113
  #
@@ -142,9 +142,9 @@ module Tinkerforge
142
142
  send_request FUNCTION_GET_ANALOG_VALUE, [], '', 4, 'S S'
143
143
  end
144
144
 
145
- # Calibrates the middle position of the Joystick. If your Joystick Bricklet
145
+ # Calibrates the middle position of the joystick. If your Joystick Bricklet
146
146
  # does not return x=0 and y=0 in the middle position, call this function
147
- # while the Joystick is standing still in the middle position.
147
+ # while the joystick is standing still in the middle position.
148
148
  #
149
149
  # The resulting calibration will be saved on the EEPROM of the Joystick
150
150
  # Bricklet, thus you only have to calibrate it once.