tinkerforge 2.0.13 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. data/lib/tinkerforge/brick_dc.rb +4 -11
  2. data/lib/tinkerforge/brick_imu.rb +17 -16
  3. data/lib/tinkerforge/brick_master.rb +96 -86
  4. data/lib/tinkerforge/brick_servo.rb +5 -12
  5. data/lib/tinkerforge/brick_stepper.rb +4 -29
  6. data/lib/tinkerforge/bricklet_ambient_light.rb +4 -5
  7. data/lib/tinkerforge/bricklet_analog_in.rb +4 -5
  8. data/lib/tinkerforge/bricklet_analog_out.rb +4 -5
  9. data/lib/tinkerforge/bricklet_barometer.rb +4 -9
  10. data/lib/tinkerforge/bricklet_current12.rb +4 -5
  11. data/lib/tinkerforge/bricklet_current25.rb +4 -5
  12. data/lib/tinkerforge/bricklet_distance_ir.rb +4 -5
  13. data/lib/tinkerforge/bricklet_distance_us.rb +4 -5
  14. data/lib/tinkerforge/bricklet_dual_button.rb +4 -7
  15. data/lib/tinkerforge/bricklet_dual_relay.rb +4 -13
  16. data/lib/tinkerforge/bricklet_gps.rb +4 -5
  17. data/lib/tinkerforge/bricklet_hall_effect.rb +6 -5
  18. data/lib/tinkerforge/bricklet_humidity.rb +4 -5
  19. data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +8 -6
  20. data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +7 -11
  21. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +4 -5
  22. data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +9 -13
  23. data/lib/tinkerforge/bricklet_io16.rb +15 -21
  24. data/lib/tinkerforge/bricklet_io4.rb +11 -17
  25. data/lib/tinkerforge/bricklet_joystick.rb +4 -5
  26. data/lib/tinkerforge/bricklet_lcd_16x2.rb +4 -5
  27. data/lib/tinkerforge/bricklet_lcd_20x4.rb +4 -5
  28. data/lib/tinkerforge/bricklet_led_strip.rb +6 -5
  29. data/lib/tinkerforge/bricklet_line.rb +4 -5
  30. data/lib/tinkerforge/bricklet_linear_poti.rb +4 -5
  31. data/lib/tinkerforge/bricklet_moisture.rb +4 -5
  32. data/lib/tinkerforge/bricklet_motion_detector.rb +4 -5
  33. data/lib/tinkerforge/bricklet_multi_touch.rb +4 -5
  34. data/lib/tinkerforge/bricklet_piezo_buzzer.rb +4 -5
  35. data/lib/tinkerforge/bricklet_piezo_speaker.rb +4 -5
  36. data/lib/tinkerforge/bricklet_ptc.rb +4 -5
  37. data/lib/tinkerforge/bricklet_remote_switch.rb +4 -5
  38. data/lib/tinkerforge/bricklet_rotary_encoder.rb +4 -5
  39. data/lib/tinkerforge/bricklet_rotary_poti.rb +4 -5
  40. data/lib/tinkerforge/bricklet_segment_display_4x7.rb +5 -6
  41. data/lib/tinkerforge/bricklet_sound_intensity.rb +4 -5
  42. data/lib/tinkerforge/bricklet_temperature.rb +4 -5
  43. data/lib/tinkerforge/bricklet_temperature_ir.rb +4 -5
  44. data/lib/tinkerforge/bricklet_tilt.rb +4 -5
  45. data/lib/tinkerforge/bricklet_voltage.rb +4 -5
  46. data/lib/tinkerforge/bricklet_voltage_current.rb +4 -5
  47. data/lib/tinkerforge/ip_connection.rb +73 -6
  48. data/lib/tinkerforge/version.rb +1 -1
  49. metadata +2 -2
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -288,9 +288,8 @@ module Tinkerforge
288
288
  #
289
289
  # The position can be 'a', 'b', 'c' or 'd'.
290
290
  #
291
- # The device identifiers can be found :ref:`here <device_identifier>`.
292
- #
293
- # .. versionadded:: 2.0.0~(Plugin)
291
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
292
+ # |device_identifier_constant|
294
293
  def get_identity
295
294
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
296
295
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -89,6 +89,8 @@ module Tinkerforge
89
89
  #
90
90
  # The debounce time is given in ms.
91
91
  #
92
+ # Configuring an edge counter resets its value to 0.
93
+ #
92
94
  # If you don't know what any of this means, just leave it at default. The
93
95
  # default configuration is very likely OK for you.
94
96
  #
@@ -147,9 +149,8 @@ module Tinkerforge
147
149
  #
148
150
  # The position can be 'a', 'b', 'c' or 'd'.
149
151
  #
150
- # The device identifiers can be found :ref:`here <device_identifier>`.
151
- #
152
- # .. versionadded:: 2.0.0~(Plugin)
152
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
153
+ # |device_identifier_constant|
153
154
  def get_identity
154
155
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
155
156
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -231,9 +231,8 @@ module Tinkerforge
231
231
  #
232
232
  # The position can be 'a', 'b', 'c' or 'd'.
233
233
  #
234
- # The device identifiers can be found :ref:`here <device_identifier>`.
235
- #
236
- # .. versionadded:: 2.0.0~(Plugin)
234
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
235
+ # |device_identifier_constant|
237
236
  def get_identity
238
237
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
239
238
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -165,7 +165,8 @@ module Tinkerforge
165
165
  send_request(FUNCTION_GET_EDGE_COUNT, [pin, reset_counter], 'C ?', 4, 'L')
166
166
  end
167
167
 
168
- # Configures the edge counter for the selected pins.
168
+ # Configures the edge counter for the selected pins. A bitmask of 9 or 0b1001 will
169
+ # enable the edge counter for pins 0 and 3.
169
170
  #
170
171
  # The edge type parameter configures if rising edges, falling edges or
171
172
  # both are counted if the pin is configured for input. Possible edge types are:
@@ -176,6 +177,8 @@ module Tinkerforge
176
177
  #
177
178
  # The debounce time is given in ms.
178
179
  #
180
+ # Configuring an edge counter resets its value to 0.
181
+ #
179
182
  # If you don't know what any of this means, just leave it at default. The
180
183
  # default configuration is very likely OK for you.
181
184
  #
@@ -200,9 +203,8 @@ module Tinkerforge
200
203
  #
201
204
  # The position can be 'a', 'b', 'c' or 'd'.
202
205
  #
203
- # The device identifiers can be found :ref:`here <device_identifier>`.
204
- #
205
- # .. versionadded:: 2.0.0~(Plugin)
206
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
207
+ # |device_identifier_constant|
206
208
  def get_identity
207
209
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
208
210
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -51,9 +51,8 @@ module Tinkerforge
51
51
  @callback_formats[CALLBACK_MONOFLOP_DONE] = 'S S'
52
52
  end
53
53
 
54
- # Sets the output value with a bitmask. The bitmask
55
- # is 16 bit long, *true* refers to high and *false* refers to
56
- # low.
54
+ # Sets the output value with a bitmask (16bit). A 1 in the bitmask means high
55
+ # and a 0 in the bitmask means low.
57
56
  #
58
57
  # For example: The value 3 or 0b0011 will turn pins 0-1 high and the other pins
59
58
  # low.
@@ -77,7 +76,7 @@ module Tinkerforge
77
76
  # bitmask.
78
77
  #
79
78
  # The second parameter is a bitmask with the desired value of the specified
80
- # pins (*true* means high and *false* means low).
79
+ # pins. A 1 in the bitmask means high and a 0 in the bitmask means low.
81
80
  #
82
81
  # The third parameter indicates the time (in ms) that the pins should hold
83
82
  # the value.
@@ -148,8 +147,6 @@ module Tinkerforge
148
147
  # If groups are used, the pins correspond to the element in the group.
149
148
  # Element 1 in the group will get pins 0-3, element 2 pins 4-7, element 3
150
149
  # pins 8-11 and element 4 pins 12-15.
151
- #
152
- # .. versionadded:: 2.0.0~(Plugin)
153
150
  def set_selected_values(selection_mask, value_mask)
154
151
  send_request(FUNCTION_SET_SELECTED_VALUES, [selection_mask, value_mask], 'S S', 0, '')
155
152
  end
@@ -160,9 +157,8 @@ module Tinkerforge
160
157
  #
161
158
  # The position can be 'a', 'b', 'c' or 'd'.
162
159
  #
163
- # The device identifiers can be found :ref:`here <device_identifier>`.
164
- #
165
- # .. versionadded:: 2.0.0~(Plugin)
160
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
161
+ # |device_identifier_constant|
166
162
  def get_identity
167
163
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
168
164
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -177,9 +177,8 @@ module Tinkerforge
177
177
  #
178
178
  # The position can be 'a', 'b', 'c' or 'd'.
179
179
  #
180
- # The device identifiers can be found :ref:`here <device_identifier>`.
181
- #
182
- # .. versionadded:: 2.0.0~(Plugin)
180
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
181
+ # |device_identifier_constant|
183
182
  def get_identity
184
183
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
185
184
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -51,12 +51,11 @@ module Tinkerforge
51
51
  @callback_formats[CALLBACK_MONOFLOP_DONE] = 'S S'
52
52
  end
53
53
 
54
- # Sets the output value with a bitmask. The bitmask
55
- # is 16 bit long, *true* refers to a closed relay and *false* refers to
56
- # an open relay.
54
+ # Sets the output value with a bitmask (16bit). A 1 in the bitmask means relay
55
+ # closed and a 0 means relay open.
57
56
  #
58
- # For example: The value 0b0011 will close the relay of pins 0-1 and open the
59
- # other pins.
57
+ # For example: The value 3 or 0b0011 will close the relay of pins 0-1 and open
58
+ # the other pins.
60
59
  #
61
60
  # If no groups are used (see BrickletIndustrialQuadRelay#set_group), the pins correspond to the
62
61
  # markings on the Quad Relay Bricklet.
@@ -77,7 +76,7 @@ module Tinkerforge
77
76
  # bitmask.
78
77
  #
79
78
  # The second parameter is a bitmask with the desired value of the specified
80
- # pins (*true* means relay closed and *false* means relay open).
79
+ # pins. A 1 in the bitmask means relay closed and a 0 means relay open.
81
80
  #
82
81
  # The third parameter indicates the time (in ms) that the pins should hold
83
82
  # the value.
@@ -148,8 +147,6 @@ module Tinkerforge
148
147
  # If groups are used, the pins correspond to the element in the group.
149
148
  # Element 1 in the group will get pins 0-3, element 2 pins 4-7, element 3
150
149
  # pins 8-11 and element 4 pins 12-15.
151
- #
152
- # .. versionadded:: 2.0.0~(Plugin)
153
150
  def set_selected_values(selection_mask, value_mask)
154
151
  send_request(FUNCTION_SET_SELECTED_VALUES, [selection_mask, value_mask], 'S S', 0, '')
155
152
  end
@@ -160,9 +157,8 @@ module Tinkerforge
160
157
  #
161
158
  # The position can be 'a', 'b', 'c' or 'd'.
162
159
  #
163
- # The device identifiers can be found :ref:`here <device_identifier>`.
164
- #
165
- # .. versionadded:: 2.0.0~(Plugin)
160
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
161
+ # |device_identifier_constant|
166
162
  def get_identity
167
163
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
168
164
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -32,8 +32,6 @@ module Tinkerforge
32
32
  # This callback is triggered whenever a monoflop timer reaches 0. The
33
33
  # parameters contain the port, the involved pins and the current value of
34
34
  # the pins (the value after the monoflop).
35
- #
36
- # .. versionadded:: 1.1.2~(Plugin)
37
35
  CALLBACK_MONOFLOP_DONE = 12
38
36
 
39
37
  FUNCTION_SET_PORT = 1 # :nodoc:
@@ -87,10 +85,10 @@ module Tinkerforge
87
85
  @callback_formats[CALLBACK_MONOFLOP_DONE] = 'k C C'
88
86
  end
89
87
 
90
- # Sets the output value (high or low) for a port ("a" or "b") with a bitmask.
91
- # The bitmask is 8 bit long, *true* refers to high and *false* refers to low.
88
+ # Sets the output value (high or low) for a port ("a" or "b") with a bitmask
89
+ # (8bit). A 1 in the bitmask means high and a 0 in the bitmask means low.
92
90
  #
93
- # For example: The value 0b00001111 will turn the pins 0-3 high and the
91
+ # For example: The value 15 or 0b00001111 will turn the pins 0-3 high and the
94
92
  # pins 4-7 low for the specified port.
95
93
  #
96
94
  # .. note::
@@ -126,7 +124,8 @@ module Tinkerforge
126
124
  send_request(FUNCTION_SET_PORT_CONFIGURATION, [port, selection_mask, direction, value], 'k C k ?', 0, '')
127
125
  end
128
126
 
129
- # Returns a direction bitmask and a value bitmask for the specified port.
127
+ # Returns a direction bitmask and a value bitmask for the specified port. A 1 in
128
+ # the direction bitmask means input and a 0 in the bitmask means output.
130
129
  #
131
130
  # For example: A return value of (15, 51) or (0b00001111, 0b00110011) for
132
131
  # direction and value means that:
@@ -159,7 +158,7 @@ module Tinkerforge
159
158
  # Interrupts are triggered on changes of the voltage level of the pin,
160
159
  # i.e. changes from high to low and low to high.
161
160
  #
162
- # For example: ('a', 129) or (a, 0b10000001) will enable the interrupt for
161
+ # For example: ('a', 129) or ('a', 0b10000001) will enable the interrupt for
163
162
  # pins 0 and 7 of port a.
164
163
  #
165
164
  # The interrupt is delivered with the callback CALLBACK_INTERRUPT.
@@ -178,7 +177,7 @@ module Tinkerforge
178
177
  # pins will be ignored.
179
178
  #
180
179
  # The third parameter is a bitmask with the desired value of the specified
181
- # output pins (*true* means high and *false* means low).
180
+ # output pins. A 1 in the bitmask means high and a 0 in the bitmask means low.
182
181
  #
183
182
  # The forth parameter indicates the time (in ms) that the pins should hold
184
183
  # the value.
@@ -192,8 +191,6 @@ module Tinkerforge
192
191
  # stacks. You can now call this function every second, with a time parameter
193
192
  # of two seconds and pin 0 set to high. Pin 0 will be high all the time. If now
194
193
  # the RS485 connection is lost, then pin 0 will get low in at most two seconds.
195
- #
196
- # .. versionadded:: 1.1.2~(Plugin)
197
194
  def set_port_monoflop(port, selection_mask, value_mask, time)
198
195
  send_request(FUNCTION_SET_PORT_MONOFLOP, [port, selection_mask, value_mask, time], 'k C C L', 0, '')
199
196
  end
@@ -203,15 +200,13 @@ module Tinkerforge
203
200
  #
204
201
  # If the timer is not running currently, the remaining time will be returned
205
202
  # as 0.
206
- #
207
- # .. versionadded:: 1.1.2~(Plugin)
208
203
  def get_port_monoflop(port, pin)
209
204
  send_request(FUNCTION_GET_PORT_MONOFLOP, [port, pin], 'k C', 9, 'C L L')
210
205
  end
211
206
 
212
207
  # Sets the output value (high or low) for a port ("a" or "b" with a bitmask,
213
- # according to the selection mask. The bitmask is 8 bit long, *true* refers
214
- # to high and *false* refers to low.
208
+ # according to the selection mask. The bitmask is 8 bit long and a 1 in the
209
+ # bitmask means high and a 0 in the bitmask means low.
215
210
  #
216
211
  # For example: The parameters ('a', 192, 128) or ('a', 0b11000000, 0b10000000)
217
212
  # will turn pin 7 high and pin 6 low on port A, pins 0-6 will remain untouched.
@@ -219,8 +214,6 @@ module Tinkerforge
219
214
  # .. note::
220
215
  # This function does nothing for pins that are configured as input.
221
216
  # Pull-up resistors can be switched on with :func:`SetConfiguration`.
222
- #
223
- # .. versionadded:: 2.0.0~(Plugin)
224
217
  def set_selected_values(port, selection_mask, value_mask)
225
218
  send_request(FUNCTION_SET_SELECTED_VALUES, [port, selection_mask, value_mask], 'k C C', 0, '')
226
219
  end
@@ -248,6 +241,8 @@ module Tinkerforge
248
241
  #
249
242
  # The debounce time is given in ms.
250
243
  #
244
+ # Configuring an edge counter resets its value to 0.
245
+ #
251
246
  # If you don't know what any of this means, just leave it at default. The
252
247
  # default configuration is very likely OK for you.
253
248
  #
@@ -272,9 +267,8 @@ module Tinkerforge
272
267
  #
273
268
  # The position can be 'a', 'b', 'c' or 'd'.
274
269
  #
275
- # The device identifiers can be found :ref:`here <device_identifier>`.
276
- #
277
- # .. versionadded:: 2.0.0~(Plugin)
270
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
271
+ # |device_identifier_constant|
278
272
  def get_identity
279
273
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
280
274
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-12-19. #
3
+ # This file was automatically generated on 2014-04-08. #
4
4
  # #
5
- # Bindings Version 2.0.13 #
5
+ # Bindings Version 2.1.0 #
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 #
@@ -31,8 +31,6 @@ module Tinkerforge
31
31
  # This callback is triggered whenever a monoflop timer reaches 0. The
32
32
  # parameters contain the involved pins and the current value of the pins
33
33
  # (the value after the monoflop).
34
- #
35
- # .. versionadded:: 1.1.1~(Plugin)
36
34
  CALLBACK_MONOFLOP_DONE = 12
37
35
 
38
36
  FUNCTION_SET_VALUE = 1 # :nodoc:
@@ -86,8 +84,8 @@ module Tinkerforge
86
84
  @callback_formats[CALLBACK_MONOFLOP_DONE] = 'C C'
87
85
  end
88
86
 
89
- # Sets the output value (high or low) with a bitmask. The bitmask
90
- # is 4bit long, *true* refers to high and *false* refers to low.
87
+ # Sets the output value (high or low) with a bitmask (4bit). A 1 in the bitmask
88
+ # means high and a 0 in the bitmask means low.
91
89
  #
92
90
  # For example: The value 3 or 0b0011 will turn the pins 0-1 high and the
93
91
  # pins 2-3 low.
@@ -125,7 +123,8 @@ module Tinkerforge
125
123
  send_request(FUNCTION_SET_CONFIGURATION, [selection_mask, direction, value], 'C k ?', 0, '')
126
124
  end
127
125
 
128
- # Returns a value bitmask and a direction bitmask.
126
+ # Returns a value bitmask and a direction bitmask. A 1 in the direction bitmask
127
+ # means input and a 0 in the bitmask means output.
129
128
  #
130
129
  # For example: A return value of (3, 5) or (0b0011, 0b0101) for direction and
131
130
  # value means that:
@@ -176,7 +175,7 @@ module Tinkerforge
176
175
  # pins will be ignored.
177
176
  #
178
177
  # The second parameter is a bitmask with the desired value of the specified
179
- # output pins (*true* means high and *false* means low).
178
+ # output pins. A 1 in the bitmask means high and a 0 in the bitmask means low.
180
179
  #
181
180
  # The third parameter indicates the time (in ms) that the pins should hold
182
181
  # the value.
@@ -190,8 +189,6 @@ module Tinkerforge
190
189
  # stacks. You can now call this function every second, with a time parameter
191
190
  # of two seconds and pin 0 set to high. Pin 0 will be high all the time. If now
192
191
  # the RS485 connection is lost, then pin 0 will get low in at most two seconds.
193
- #
194
- # .. versionadded:: 1.1.1~(Plugin)
195
192
  def set_monoflop(selection_mask, value_mask, time)
196
193
  send_request(FUNCTION_SET_MONOFLOP, [selection_mask, value_mask, time], 'C C L', 0, '')
197
194
  end
@@ -201,8 +198,6 @@ module Tinkerforge
201
198
  #
202
199
  # If the timer is not running currently, the remaining time will be returned
203
200
  # as 0.
204
- #
205
- # .. versionadded:: 1.1.1~(Plugin)
206
201
  def get_monoflop(pin)
207
202
  send_request(FUNCTION_GET_MONOFLOP, [pin], 'C', 9, 'C L L')
208
203
  end
@@ -217,8 +212,6 @@ module Tinkerforge
217
212
  # .. note::
218
213
  # This function does nothing for pins that are configured as input.
219
214
  # Pull-up resistors can be switched on with BrickletIO4#set_configuration.
220
- #
221
- # .. versionadded:: 2.0.0~(Plugin)
222
215
  def set_selected_values(selection_mask, value_mask)
223
216
  send_request(FUNCTION_SET_SELECTED_VALUES, [selection_mask, value_mask], 'C C', 0, '')
224
217
  end
@@ -245,6 +238,8 @@ module Tinkerforge
245
238
  #
246
239
  # The debounce time is given in ms.
247
240
  #
241
+ # Configuring an edge counter resets its value to 0.
242
+ #
248
243
  # If you don't know what any of this means, just leave it at default. The
249
244
  # default configuration is very likely OK for you.
250
245
  #
@@ -269,9 +264,8 @@ module Tinkerforge
269
264
  #
270
265
  # The position can be 'a', 'b', 'c' or 'd'.
271
266
  #
272
- # The device identifiers can be found :ref:`here <device_identifier>`.
273
- #
274
- # .. versionadded:: 2.0.0~(Plugin)
267
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
268
+ # |device_identifier_constant|
275
269
  def get_identity
276
270
  send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
277
271
  end