tinkerforge 2.0.10 → 2.0.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. data/lib/tinkerforge/brick_dc.rb +2 -2
  2. data/lib/tinkerforge/brick_imu.rb +2 -2
  3. data/lib/tinkerforge/brick_master.rb +2 -2
  4. data/lib/tinkerforge/brick_servo.rb +2 -2
  5. data/lib/tinkerforge/brick_stepper.rb +8 -8
  6. data/lib/tinkerforge/bricklet_ambient_light.rb +2 -2
  7. data/lib/tinkerforge/bricklet_analog_in.rb +4 -4
  8. data/lib/tinkerforge/bricklet_analog_out.rb +2 -2
  9. data/lib/tinkerforge/bricklet_barometer.rb +2 -2
  10. data/lib/tinkerforge/bricklet_current12.rb +2 -2
  11. data/lib/tinkerforge/bricklet_current25.rb +2 -2
  12. data/lib/tinkerforge/bricklet_distance_ir.rb +2 -2
  13. data/lib/tinkerforge/bricklet_dual_relay.rb +2 -2
  14. data/lib/tinkerforge/bricklet_gps.rb +2 -2
  15. data/lib/tinkerforge/bricklet_humidity.rb +2 -2
  16. data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +7 -3
  17. data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +2 -2
  18. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +2 -2
  19. data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +2 -2
  20. data/lib/tinkerforge/bricklet_io16.rb +17 -13
  21. data/lib/tinkerforge/bricklet_io4.rb +7 -3
  22. data/lib/tinkerforge/bricklet_joystick.rb +2 -2
  23. data/lib/tinkerforge/bricklet_lcd_16x2.rb +2 -2
  24. data/lib/tinkerforge/bricklet_lcd_20x4.rb +2 -2
  25. data/lib/tinkerforge/bricklet_linear_poti.rb +2 -2
  26. data/lib/tinkerforge/bricklet_piezo_buzzer.rb +2 -2
  27. data/lib/tinkerforge/bricklet_ptc.rb +2 -2
  28. data/lib/tinkerforge/bricklet_rotary_poti.rb +2 -2
  29. data/lib/tinkerforge/bricklet_temperature.rb +2 -2
  30. data/lib/tinkerforge/bricklet_temperature_ir.rb +2 -2
  31. data/lib/tinkerforge/bricklet_voltage.rb +2 -2
  32. data/lib/tinkerforge/bricklet_voltage_current.rb +2 -2
  33. data/lib/tinkerforge/version.rb +1 -1
  34. metadata +2 -2
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 #
@@ -42,12 +42,12 @@ module Tinkerforge
42
42
  #
43
43
  # Possible states are:
44
44
  #
45
- # * Stop = 1
46
- # * Acceleration = 2
47
- # * Run = 3
48
- # * Deacceleration = 4
49
- # * Direction change to forward = 5
50
- # * Direction change to backward = 6
45
+ # * 1 = Stop
46
+ # * 2 = Acceleration
47
+ # * 3 = Run
48
+ # * 4 = Deacceleration
49
+ # * 5 = Direction change to forward
50
+ # * 6 = Direction change to backward
51
51
  #
52
52
  # .. versionadded:: 1.1.6~(Firmware)
53
53
  CALLBACK_NEW_STATE = 41
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 #
@@ -268,8 +268,8 @@ module Tinkerforge
268
268
  # The default value is 50.
269
269
  #
270
270
  # .. versionadded:: 2.0.3~(Plugin)
271
- def set_averaging(length)
272
- send_request(FUNCTION_SET_AVERAGING, [length], 'C', 0, '')
271
+ def set_averaging(average)
272
+ send_request(FUNCTION_SET_AVERAGING, [average], 'C', 0, '')
273
273
  end
274
274
 
275
275
  # Returns the averaging configuration as set by BrickletAnalogIn#set_averaging.
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 #
@@ -169,7 +169,11 @@ module Tinkerforge
169
169
  # Configures the edge counter for the selected pins.
170
170
  #
171
171
  # The edge type parameter configures if rising edges, falling edges or
172
- # both are counted if the pin is configured for input.
172
+ # both are counted if the pin is configured for input. Possible edge types are:
173
+ #
174
+ # * 0 = rising (default)
175
+ # * 1 = falling
176
+ # * 2 = both
173
177
  #
174
178
  # The debounce time is given in ms.
175
179
  #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 #
@@ -224,22 +224,26 @@ module Tinkerforge
224
224
  send_request(FUNCTION_SET_SELECTED_VALUES, [port, selection_mask, value_mask], 'k C C', 0, '')
225
225
  end
226
226
 
227
- # Returns the current value of the edge counter for pin 0 of the selected port.
227
+ # Returns the current value of the edge counter for the selected pin on port A.
228
228
  # You can configure the edges that are counted with BrickletIO16#set_edge_count_config.
229
229
  #
230
230
  # If you set the reset counter to *true*, the count is set back to 0
231
231
  # directly after it is read.
232
232
  #
233
233
  # .. versionadded:: 2.0.3~(Plugin)
234
- def get_edge_count(port, reset_counter)
235
- send_request(FUNCTION_GET_EDGE_COUNT, [port, reset_counter], 'k ?', 4, 'L')
234
+ def get_edge_count(pin, reset_counter)
235
+ send_request(FUNCTION_GET_EDGE_COUNT, [pin, reset_counter], 'C ?', 4, 'L')
236
236
  end
237
237
 
238
- # Configures the edge counter for pin 0 of the selected port. Pin 1-7 don't
239
- # support edge counting.
238
+ # Configures the edge counter for the selected pin of port A. Pins 0 and 1
239
+ # are available for edge counting.
240
240
  #
241
241
  # The edge type parameter configures if rising edges, falling edges or
242
- # both are counted if the pin is configured for input.
242
+ # both are counted if the pin is configured for input. Possible edge types are:
243
+ #
244
+ # * 0 = rising (default)
245
+ # * 1 = falling
246
+ # * 2 = both
243
247
  #
244
248
  # The debounce time is given in ms.
245
249
  #
@@ -249,16 +253,16 @@ module Tinkerforge
249
253
  # Default values: 0 (edge type) and 100ms (debounce time)
250
254
  #
251
255
  # .. versionadded:: 2.0.3~(Plugin)
252
- def set_edge_count_config(port, edge_type, debounce)
253
- send_request(FUNCTION_SET_EDGE_COUNT_CONFIG, [port, edge_type, debounce], 'k C C', 0, '')
256
+ def set_edge_count_config(pin, edge_type, debounce)
257
+ send_request(FUNCTION_SET_EDGE_COUNT_CONFIG, [pin, edge_type, debounce], 'C C C', 0, '')
254
258
  end
255
259
 
256
- # Returns the edge type and debounce time for pin 0 of the selected port as set by
260
+ # Returns the edge type and debounce time for the selected pin of port A as set by
257
261
  # BrickletIO16#set_edge_count_config.
258
262
  #
259
263
  # .. versionadded:: 2.0.3~(Plugin)
260
- def get_edge_count_config(port)
261
- send_request(FUNCTION_GET_EDGE_COUNT_CONFIG, [port], 'k', 2, 'C C')
264
+ def get_edge_count_config(pin)
265
+ send_request(FUNCTION_GET_EDGE_COUNT_CONFIG, [pin], 'C', 2, 'C C')
262
266
  end
263
267
 
264
268
  # Returns the UID, the UID where the Bricklet is connected to,
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 #
@@ -237,7 +237,11 @@ module Tinkerforge
237
237
  # Configures the edge counter for the selected pins.
238
238
  #
239
239
  # The edge type parameter configures if rising edges, falling edges or
240
- # both are counted if the pin is configured for input.
240
+ # both are counted if the pin is configured for input. Possible edge types are:
241
+ #
242
+ # * 0 = rising (default)
243
+ # * 1 = falling
244
+ # * 2 = both
241
245
  #
242
246
  # The debounce time is given in ms.
243
247
  #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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 2013-08-28. #
3
+ # This file was automatically generated on 2013-09-11. #
4
4
  # #
5
- # Bindings Version 2.0.10 #
5
+ # Bindings Version 2.0.11 #
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,4 +1,4 @@
1
1
 
2
2
  module Tinkerforge
3
- VERSION = '2.0.10'
3
+ VERSION = '2.0.11'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinkerforge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.10
4
+ version: 2.0.11
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-28 00:00:00.000000000 Z
12
+ date: 2013-09-11 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: matthias@tinkerforge.com