tinkerforge 2.0.12 → 2.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) 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 +2 -2
  6. data/lib/tinkerforge/bricklet_ambient_light.rb +2 -2
  7. data/lib/tinkerforge/bricklet_analog_in.rb +2 -2
  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_distance_us.rb +2 -2
  14. data/lib/tinkerforge/bricklet_dual_button.rb +2 -2
  15. data/lib/tinkerforge/bricklet_dual_relay.rb +2 -2
  16. data/lib/tinkerforge/bricklet_gps.rb +28 -25
  17. data/lib/tinkerforge/bricklet_hall_effect.rb +2 -2
  18. data/lib/tinkerforge/bricklet_humidity.rb +2 -2
  19. data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +12 -13
  20. data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +11 -12
  21. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +2 -2
  22. data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +11 -12
  23. data/lib/tinkerforge/bricklet_io16.rb +20 -19
  24. data/lib/tinkerforge/bricklet_io4.rb +22 -22
  25. data/lib/tinkerforge/bricklet_joystick.rb +2 -2
  26. data/lib/tinkerforge/bricklet_lcd_16x2.rb +2 -2
  27. data/lib/tinkerforge/bricklet_lcd_20x4.rb +2 -2
  28. data/lib/tinkerforge/bricklet_led_strip.rb +47 -6
  29. data/lib/tinkerforge/bricklet_line.rb +2 -2
  30. data/lib/tinkerforge/bricklet_linear_poti.rb +2 -2
  31. data/lib/tinkerforge/bricklet_moisture.rb +2 -2
  32. data/lib/tinkerforge/bricklet_motion_detector.rb +7 -3
  33. data/lib/tinkerforge/bricklet_multi_touch.rb +2 -2
  34. data/lib/tinkerforge/bricklet_piezo_buzzer.rb +2 -2
  35. data/lib/tinkerforge/bricklet_piezo_speaker.rb +2 -2
  36. data/lib/tinkerforge/bricklet_ptc.rb +2 -2
  37. data/lib/tinkerforge/bricklet_remote_switch.rb +71 -11
  38. data/lib/tinkerforge/bricklet_rotary_encoder.rb +2 -2
  39. data/lib/tinkerforge/bricklet_rotary_poti.rb +2 -2
  40. data/lib/tinkerforge/bricklet_segment_display_4x7.rb +2 -2
  41. data/lib/tinkerforge/bricklet_sound_intensity.rb +2 -2
  42. data/lib/tinkerforge/bricklet_temperature.rb +2 -2
  43. data/lib/tinkerforge/bricklet_temperature_ir.rb +2 -2
  44. data/lib/tinkerforge/bricklet_tilt.rb +2 -2
  45. data/lib/tinkerforge/bricklet_voltage.rb +2 -2
  46. data/lib/tinkerforge/bricklet_voltage_current.rb +2 -2
  47. data/lib/tinkerforge/version.rb +1 -1
  48. metadata +2 -2
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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 #
@@ -69,10 +69,10 @@ module Tinkerforge
69
69
  FUNCTION_GET_STATUS_CALLBACK_PERIOD = 10 # :nodoc:
70
70
  FUNCTION_SET_ALTITUDE_CALLBACK_PERIOD = 11 # :nodoc:
71
71
  FUNCTION_GET_ALTITUDE_CALLBACK_PERIOD = 12 # :nodoc:
72
- FUNCTION_SET_DATE_TIME_CALLBACK_PERIOD = 13 # :nodoc:
73
- FUNCTION_GET_DATE_TIME_CALLBACK_PERIOD = 14 # :nodoc:
74
- FUNCTION_SET_MOTION_CALLBACK_PERIOD = 15 # :nodoc:
75
- FUNCTION_GET_MOTION_CALLBACK_PERIOD = 16 # :nodoc:
72
+ FUNCTION_SET_MOTION_CALLBACK_PERIOD = 13 # :nodoc:
73
+ FUNCTION_GET_MOTION_CALLBACK_PERIOD = 14 # :nodoc:
74
+ FUNCTION_SET_DATE_TIME_CALLBACK_PERIOD = 15 # :nodoc:
75
+ FUNCTION_GET_DATE_TIME_CALLBACK_PERIOD = 16 # :nodoc:
76
76
  FUNCTION_GET_IDENTITY = 255 # :nodoc:
77
77
 
78
78
  FIX_NO_FIX = 1 # :nodoc:
@@ -102,10 +102,10 @@ module Tinkerforge
102
102
  @response_expected[FUNCTION_GET_STATUS_CALLBACK_PERIOD] = RESPONSE_EXPECTED_ALWAYS_TRUE
103
103
  @response_expected[FUNCTION_SET_ALTITUDE_CALLBACK_PERIOD] = RESPONSE_EXPECTED_TRUE
104
104
  @response_expected[FUNCTION_GET_ALTITUDE_CALLBACK_PERIOD] = RESPONSE_EXPECTED_ALWAYS_TRUE
105
- @response_expected[FUNCTION_SET_DATE_TIME_CALLBACK_PERIOD] = RESPONSE_EXPECTED_TRUE
106
- @response_expected[FUNCTION_GET_DATE_TIME_CALLBACK_PERIOD] = RESPONSE_EXPECTED_ALWAYS_TRUE
107
105
  @response_expected[FUNCTION_SET_MOTION_CALLBACK_PERIOD] = RESPONSE_EXPECTED_TRUE
108
106
  @response_expected[FUNCTION_GET_MOTION_CALLBACK_PERIOD] = RESPONSE_EXPECTED_ALWAYS_TRUE
107
+ @response_expected[FUNCTION_SET_DATE_TIME_CALLBACK_PERIOD] = RESPONSE_EXPECTED_TRUE
108
+ @response_expected[FUNCTION_GET_DATE_TIME_CALLBACK_PERIOD] = RESPONSE_EXPECTED_ALWAYS_TRUE
109
109
  @response_expected[CALLBACK_COORDINATES] = RESPONSE_EXPECTED_ALWAYS_FALSE
110
110
  @response_expected[CALLBACK_STATUS] = RESPONSE_EXPECTED_ALWAYS_FALSE
111
111
  @response_expected[CALLBACK_ALTITUDE] = RESPONSE_EXPECTED_ALWAYS_FALSE
@@ -149,9 +149,12 @@ module Tinkerforge
149
149
  #
150
150
  # "Value", "Description"
151
151
  #
152
- # "1", "No Fix"
153
- # "2", "2D Fix"
154
- # "3", "3D Fix"
152
+ # "1", "No Fix, BrickletGPS#get_coordinates and BrickletGPS#get_altitude return invalid data"
153
+ # "2", "2D Fix, only BrickletGPS#get_coordinates returns valid data"
154
+ # "3", "3D Fix, BrickletGPS#get_coordinates and BrickletGPS#get_altitude return valid data"
155
+ #
156
+ # There is also a :ref:`blue LED <gps_bricklet_fix_led>` on the Bricklet that
157
+ # indicates the fix status.
155
158
  def get_status
156
159
  send_request(FUNCTION_GET_STATUS, [], '', 3, 'C C C')
157
160
  end
@@ -247,36 +250,36 @@ module Tinkerforge
247
250
  send_request(FUNCTION_GET_ALTITUDE_CALLBACK_PERIOD, [], '', 4, 'L')
248
251
  end
249
252
 
250
- # Sets the period in ms with which the CALLBACK_DATE_TIME callback is triggered
253
+ # Sets the period in ms with which the CALLBACK_MOTION callback is triggered
251
254
  # periodically. A value of 0 turns the callback off.
252
255
  #
253
- # CALLBACK_DATE_TIME is only triggered if the date or time changed since the
256
+ # CALLBACK_MOTION is only triggered if the motion changed since the
254
257
  # last triggering.
255
258
  #
256
259
  # The default value is 0.
257
- def set_date_time_callback_period(period)
258
- send_request(FUNCTION_SET_DATE_TIME_CALLBACK_PERIOD, [period], 'L', 0, '')
260
+ def set_motion_callback_period(period)
261
+ send_request(FUNCTION_SET_MOTION_CALLBACK_PERIOD, [period], 'L', 0, '')
259
262
  end
260
263
 
261
- # Returns the period as set by BrickletGPS#set_date_time_callback_period.
262
- def get_date_time_callback_period
263
- send_request(FUNCTION_GET_DATE_TIME_CALLBACK_PERIOD, [], '', 4, 'L')
264
+ # Returns the period as set by BrickletGPS#set_motion_callback_period.
265
+ def get_motion_callback_period
266
+ send_request(FUNCTION_GET_MOTION_CALLBACK_PERIOD, [], '', 4, 'L')
264
267
  end
265
268
 
266
- # Sets the period in ms with which the CALLBACK_MOTION callback is triggered
269
+ # Sets the period in ms with which the CALLBACK_DATE_TIME callback is triggered
267
270
  # periodically. A value of 0 turns the callback off.
268
271
  #
269
- # CALLBACK_MOTION is only triggered if the motion changed since the
272
+ # CALLBACK_DATE_TIME is only triggered if the date or time changed since the
270
273
  # last triggering.
271
274
  #
272
275
  # The default value is 0.
273
- def set_motion_callback_period(period)
274
- send_request(FUNCTION_SET_MOTION_CALLBACK_PERIOD, [period], 'L', 0, '')
276
+ def set_date_time_callback_period(period)
277
+ send_request(FUNCTION_SET_DATE_TIME_CALLBACK_PERIOD, [period], 'L', 0, '')
275
278
  end
276
279
 
277
- # Returns the period as set by BrickletGPS#set_motion_callback_period.
278
- def get_motion_callback_period
279
- send_request(FUNCTION_GET_MOTION_CALLBACK_PERIOD, [], '', 4, 'L')
280
+ # Returns the period as set by BrickletGPS#set_date_time_callback_period.
281
+ def get_date_time_callback_period
282
+ send_request(FUNCTION_GET_DATE_TIME_CALLBACK_PERIOD, [], '', 4, 'L')
280
283
  end
281
284
 
282
285
  # 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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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 #
@@ -22,9 +22,9 @@ module Tinkerforge
22
22
  #
23
23
  # For example:
24
24
  #
25
- # * (1, 1) means that an interrupt on pin 0 occurred and
25
+ # * (1, 1) or (0b0001, 0b0001) means that an interrupt on pin 0 occurred and
26
26
  # currently pin 0 is high and pins 1-3 are low.
27
- # * (9, 14) means that interrupts on pins 0 and 3
27
+ # * (9, 14) or (0b1001, 0b1110) means that interrupts on pins 0 and 3
28
28
  # occurred and currently pin 0 is low and pins 1-3 are high.
29
29
  CALLBACK_INTERRUPT = 9
30
30
 
@@ -69,12 +69,11 @@ module Tinkerforge
69
69
  @callback_formats[CALLBACK_INTERRUPT] = 'S S'
70
70
  end
71
71
 
72
- # Returns the input value with a bitmask. The bitmask
73
- # is 16 bit long, *true* refers to high and *false* refers to
74
- # low.
72
+ # Returns the input value with a bitmask. The bitmask is 16bit long, *true*
73
+ # refers to high and *false* refers to low.
75
74
  #
76
- # For example: The value 0b0000000000000011 means that pins 0-1
77
- # are high and the other pins are low.
75
+ # For example: The value 3 or 0b0011 means that pins 0-1 are high and the other
76
+ # pins are low.
78
77
  #
79
78
  # If no groups are used (see BrickletIndustrialDigitalIn4#set_group), the pins correspond to the
80
79
  # markings on the Digital In 4 Bricklet.
@@ -96,7 +95,7 @@ module Tinkerforge
96
95
  # not be used.
97
96
  #
98
97
  # For example: If you have two Digital In 4 Bricklets connected to port A and
99
- # port B respectively, you could call with "['a', 'b', 'n', 'n']".
98
+ # port B respectively, you could call with ``['a', 'b', 'n', 'n']``.
100
99
  #
101
100
  # Now the pins on the Digital In 4 on port A are assigned to 0-3 and the
102
101
  # pins on the Digital In 4 on port B are assigned to 4-7. It is now possible
@@ -114,7 +113,7 @@ module Tinkerforge
114
113
  end
115
114
 
116
115
  # Returns a bitmask of ports that are available for grouping. For example the
117
- # value 0b0101 means: Port *A* and Port *C* are connected to Bricklets that
116
+ # value 5 or 0b0101 means: Port A and port C are connected to Bricklets that
118
117
  # can be grouped together.
119
118
  def get_available_for_group
120
119
  send_request(FUNCTION_GET_AVAILABLE_FOR_GROUP, [], '', 1, 'C')
@@ -140,8 +139,8 @@ module Tinkerforge
140
139
  # Interrupts are triggered on changes of the voltage level of the pin,
141
140
  # i.e. changes from high to low and low to high.
142
141
  #
143
- # For example: An interrupt bitmask of 9 (0b0000000000001001) will
144
- # enable the interrupt for pins 0 and 3.
142
+ # For example: An interrupt bitmask of 9 or 0b1001 will enable the interrupt for
143
+ # pins 0 and 3.
145
144
  #
146
145
  # The interrupts use the grouping as set by BrickletIndustrialDigitalIn4#set_group.
147
146
  #
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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 #
@@ -55,8 +55,8 @@ module Tinkerforge
55
55
  # is 16 bit long, *true* refers to high and *false* refers to
56
56
  # low.
57
57
  #
58
- # For example: The value 0b0000000000000011 will turn pins 0-1
59
- # high and the other pins low.
58
+ # For example: The value 3 or 0b0011 will turn pins 0-1 high and the other pins
59
+ # low.
60
60
  #
61
61
  # If no groups are used (see BrickletIndustrialDigitalOut4#set_group), the pins correspond to the
62
62
  # markings on the Digital Out 4 Bricklet.
@@ -82,10 +82,9 @@ module Tinkerforge
82
82
  # The third parameter indicates the time (in ms) that the pins should hold
83
83
  # the value.
84
84
  #
85
- # If this function is called with the parameters
86
- # ((1 << 0) | (1 << 3), (1 << 0), 1500):
87
- # Pin 0 will get high and pin 3 will get low. In 1.5s pin 0 will get low and
88
- # pin 3 will get high again.
85
+ # If this function is called with the parameters (9, 1, 1500) or
86
+ # (0b1001, 0b0001, 1500): Pin 0 will get high and pin 3 will get low. In 1.5s
87
+ # pin 0 will get low and pin 3 will get high again.
89
88
  #
90
89
  # A monoflop can be used as a fail-safe mechanism. For example: Lets assume you
91
90
  # have a RS485 bus and a Digital Out 4 Bricklet connected to one of the slave
@@ -115,7 +114,7 @@ module Tinkerforge
115
114
  # not be used.
116
115
  #
117
116
  # For example: If you have two Digital Out 4 Bricklets connected to port A and
118
- # port B respectively, you could call with "['a', 'b', 'n', 'n']".
117
+ # port B respectively, you could call with ``['a', 'b', 'n', 'n']``.
119
118
  #
120
119
  # Now the pins on the Digital Out 4 on port A are assigned to 0-3 and the
121
120
  # pins on the Digital Out 4 on port B are assigned to 4-7. It is now possible
@@ -130,7 +129,7 @@ module Tinkerforge
130
129
  end
131
130
 
132
131
  # Returns a bitmask of ports that are available for grouping. For example the
133
- # value 0b0101 means: Port *A* and Port *C* are connected to Bricklets that
132
+ # value 5 or 0b0101 means: Port A and port C are connected to Bricklets that
134
133
  # can be grouped together.
135
134
  def get_available_for_group
136
135
  send_request(FUNCTION_GET_AVAILABLE_FOR_GROUP, [], '', 1, 'C')
@@ -140,8 +139,8 @@ module Tinkerforge
140
139
  # The bitmask is 16 bit long, *true* refers to high and *false* refers to
141
140
  # low.
142
141
  #
143
- # For example: The values 0b0000000000000011, b0000000000000001 will turn
144
- # pin 0 high, pin 1 low the other pins remain untouched.
142
+ # For example: The values (3, 1) or (0b0011, 0b0001) will turn pin 0 high, pin 1
143
+ # low the other pins remain untouched.
145
144
  #
146
145
  # If no groups are used (see BrickletIndustrialDigitalOut4#set_group), the pins correspond to the
147
146
  # markings on the Digital Out 4 Bricklet.
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2013-11-27. #
3
+ # This file was automatically generated on 2013-12-19. #
4
4
  # #
5
- # Bindings Version 2.0.12 #
5
+ # Bindings Version 2.0.13 #
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 #