tinkerforge 2.1.11 → 2.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. data/lib/tinkerforge/brick_dc.rb +31 -9
  2. data/lib/tinkerforge/brick_imu.rb +62 -40
  3. data/lib/tinkerforge/brick_imu_v2.rb +70 -42
  4. data/lib/tinkerforge/brick_master.rb +47 -23
  5. data/lib/tinkerforge/brick_red.rb +3 -3
  6. data/lib/tinkerforge/brick_servo.rb +40 -18
  7. data/lib/tinkerforge/brick_silent_stepper.rb +829 -0
  8. data/lib/tinkerforge/brick_stepper.rb +47 -25
  9. data/lib/tinkerforge/bricklet_accelerometer.rb +11 -11
  10. data/lib/tinkerforge/bricklet_ambient_light.rb +12 -12
  11. data/lib/tinkerforge/bricklet_ambient_light_v2.rb +8 -8
  12. data/lib/tinkerforge/bricklet_analog_in.rb +18 -18
  13. data/lib/tinkerforge/bricklet_analog_in_v2.rb +15 -15
  14. data/lib/tinkerforge/bricklet_analog_out.rb +3 -3
  15. data/lib/tinkerforge/bricklet_analog_out_v2.rb +3 -3
  16. data/lib/tinkerforge/bricklet_barometer.rb +19 -19
  17. data/lib/tinkerforge/bricklet_can.rb +20 -7
  18. data/lib/tinkerforge/bricklet_co2.rb +14 -14
  19. data/lib/tinkerforge/bricklet_color.rb +19 -19
  20. data/lib/tinkerforge/bricklet_current12.rb +16 -16
  21. data/lib/tinkerforge/bricklet_current25.rb +15 -15
  22. data/lib/tinkerforge/bricklet_distance_ir.rb +14 -14
  23. data/lib/tinkerforge/bricklet_distance_us.rb +9 -9
  24. data/lib/tinkerforge/bricklet_dual_button.rb +5 -5
  25. data/lib/tinkerforge/bricklet_dual_relay.rb +13 -13
  26. data/lib/tinkerforge/bricklet_dust_detector.rb +11 -11
  27. data/lib/tinkerforge/bricklet_gps.rb +21 -21
  28. data/lib/tinkerforge/bricklet_hall_effect.rb +12 -10
  29. data/lib/tinkerforge/bricklet_humidity.rb +21 -21
  30. data/lib/tinkerforge/bricklet_industrial_analog_out.rb +3 -3
  31. data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +4 -4
  32. data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +4 -4
  33. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +6 -6
  34. data/lib/tinkerforge/bricklet_industrial_dual_analog_in.rb +6 -6
  35. data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +5 -5
  36. data/lib/tinkerforge/bricklet_io16.rb +5 -5
  37. data/lib/tinkerforge/bricklet_io4.rb +5 -5
  38. data/lib/tinkerforge/bricklet_joystick.rb +16 -16
  39. data/lib/tinkerforge/bricklet_laser_range_finder.rb +99 -30
  40. data/lib/tinkerforge/bricklet_lcd_16x2.rb +5 -5
  41. data/lib/tinkerforge/bricklet_lcd_20x4.rb +5 -5
  42. data/lib/tinkerforge/bricklet_led_strip.rb +3 -3
  43. data/lib/tinkerforge/bricklet_line.rb +12 -12
  44. data/lib/tinkerforge/bricklet_linear_poti.rb +21 -21
  45. data/lib/tinkerforge/bricklet_load_cell.rb +10 -10
  46. data/lib/tinkerforge/bricklet_moisture.rb +12 -12
  47. data/lib/tinkerforge/bricklet_motion_detector.rb +5 -5
  48. data/lib/tinkerforge/bricklet_multi_touch.rb +3 -3
  49. data/lib/tinkerforge/bricklet_nfc_rfid.rb +20 -20
  50. data/lib/tinkerforge/bricklet_oled_128x64.rb +7 -7
  51. data/lib/tinkerforge/bricklet_oled_64x48.rb +6 -6
  52. data/lib/tinkerforge/bricklet_piezo_buzzer.rb +4 -4
  53. data/lib/tinkerforge/bricklet_piezo_speaker.rb +5 -5
  54. data/lib/tinkerforge/bricklet_ptc.rb +21 -21
  55. data/lib/tinkerforge/bricklet_real_time_clock.rb +7 -7
  56. data/lib/tinkerforge/bricklet_remote_switch.rb +3 -3
  57. data/lib/tinkerforge/bricklet_rgb_led.rb +3 -3
  58. data/lib/tinkerforge/bricklet_rotary_encoder.rb +6 -6
  59. data/lib/tinkerforge/bricklet_rotary_poti.rb +23 -23
  60. data/lib/tinkerforge/bricklet_rs232.rb +19 -16
  61. data/lib/tinkerforge/bricklet_segment_display_4x7.rb +5 -5
  62. data/lib/tinkerforge/bricklet_solid_state_relay.rb +12 -12
  63. data/lib/tinkerforge/bricklet_sound_intensity.rb +13 -12
  64. data/lib/tinkerforge/bricklet_temperature.rb +12 -12
  65. data/lib/tinkerforge/bricklet_temperature_ir.rb +30 -30
  66. data/lib/tinkerforge/bricklet_thermocouple.rb +13 -13
  67. data/lib/tinkerforge/bricklet_tilt.rb +3 -3
  68. data/lib/tinkerforge/bricklet_uv_light.rb +10 -10
  69. data/lib/tinkerforge/bricklet_voltage.rb +18 -18
  70. data/lib/tinkerforge/bricklet_voltage_current.rb +23 -23
  71. data/lib/tinkerforge/version.rb +1 -1
  72. metadata +3 -2
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2017-01-25. #
3
+ # This file was automatically generated on 2017-04-21. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.11 #
5
+ # Ruby Bindings Version 2.1.12 #
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 #
@@ -19,23 +19,23 @@ module Tinkerforge
19
19
  # BrickletVoltageCurrent#set_current_callback_period. The parameter is the current of the
20
20
  # sensor.
21
21
  #
22
- # CALLBACK_CURRENT is only triggered if the current has changed since the
23
- # last triggering.
22
+ # The CALLBACK_CURRENT callback is only triggered if the current has changed since
23
+ # the last triggering.
24
24
  CALLBACK_CURRENT = 22
25
25
 
26
26
  # This callback is triggered periodically with the period that is set by
27
- # BrickletVoltageCurrent#set_voltage_callback_period. The parameter is the voltage of the
28
- # sensor.
27
+ # BrickletVoltageCurrent#set_voltage_callback_period. The parameter is the voltage of
28
+ # the sensor.
29
29
  #
30
- # CALLBACK_VOLTAGE is only triggered if the voltage has changed since the
31
- # last triggering.
30
+ # The CALLBACK_VOLTAGE callback is only triggered if the voltage has changed since
31
+ # the last triggering.
32
32
  CALLBACK_VOLTAGE = 23
33
33
 
34
34
  # This callback is triggered periodically with the period that is set by
35
35
  # BrickletVoltageCurrent#set_power_callback_period. The parameter is the power of the
36
36
  # sensor.
37
37
  #
38
- # CALLBACK_POWER is only triggered if the power has changed since the
38
+ # The CALLBACK_POWER callback is only triggered if the power has changed since the
39
39
  # last triggering.
40
40
  CALLBACK_POWER = 24
41
41
 
@@ -148,7 +148,7 @@ module Tinkerforge
148
148
  # and between -20000mA and 20000mA.
149
149
  #
150
150
  # If you want to get the current periodically, it is recommended to use the
151
- # callback CALLBACK_CURRENT and set the period with
151
+ # CALLBACK_CURRENT callback and set the period with
152
152
  # BrickletVoltageCurrent#set_current_callback_period.
153
153
  def get_current
154
154
  send_request(FUNCTION_GET_CURRENT, [], '', 4, 'l')
@@ -158,7 +158,7 @@ module Tinkerforge
158
158
  # and between 0mV and 36000mV.
159
159
  #
160
160
  # If you want to get the voltage periodically, it is recommended to use the
161
- # callback CALLBACK_VOLTAGE and set the period with
161
+ # CALLBACK_VOLTAGE callback and set the period with
162
162
  # BrickletVoltageCurrent#set_voltage_callback_period.
163
163
  def get_voltage
164
164
  send_request(FUNCTION_GET_VOLTAGE, [], '', 4, 'l')
@@ -168,7 +168,7 @@ module Tinkerforge
168
168
  # and between 0mV and 720000mW.
169
169
  #
170
170
  # If you want to get the power periodically, it is recommended to use the
171
- # callback CALLBACK_POWER and set the period with
171
+ # CALLBACK_POWER callback and set the period with
172
172
  # BrickletVoltageCurrent#set_power_callback_period.
173
173
  def get_power
174
174
  send_request(FUNCTION_GET_POWER, [], '', 4, 'l')
@@ -204,7 +204,7 @@ module Tinkerforge
204
204
  # "6", "4.156ms"
205
205
  # ">=7", "8.244ms"
206
206
  #
207
- # The default values are 3, 4 and 4 (64, 1.1ms, 1.1ms) for averaging, voltage
207
+ # The default values are 3, 4 and 4 (64, 1.1ms, 1.1ms) for averaging, voltage
208
208
  # conversion and current conversion.
209
209
  def set_configuration(averaging, voltage_conversion_time, current_conversion_time)
210
210
  send_request(FUNCTION_SET_CONFIGURATION, [averaging, voltage_conversion_time, current_conversion_time], 'C C C', 0, '')
@@ -220,7 +220,7 @@ module Tinkerforge
220
220
  # divisor if a very precise reading is needed.
221
221
  #
222
222
  # For example, if you are expecting a measurement of 1000mA and you
223
- # are measuring 1023mA, you can calibrate the Voltage/Current Bricklet
223
+ # are measuring 1023mA, you can calibrate the Voltage/Current Bricklet
224
224
  # by setting the multiplier to 1000 and the divisor to 1023.
225
225
  def set_calibration(gain_multiplier, gain_divisor)
226
226
  send_request(FUNCTION_SET_CALIBRATION, [gain_multiplier, gain_divisor], 'S S', 0, '')
@@ -234,8 +234,8 @@ module Tinkerforge
234
234
  # Sets the period in ms with which the CALLBACK_CURRENT callback is triggered
235
235
  # periodically. A value of 0 turns the callback off.
236
236
  #
237
- # CALLBACK_CURRENT is only triggered if the current has changed since the
238
- # last triggering.
237
+ # The CALLBACK_CURRENT callback is only triggered if the current has changed since
238
+ # the last triggering.
239
239
  #
240
240
  # The default value is 0.
241
241
  def set_current_callback_period(period)
@@ -250,8 +250,8 @@ module Tinkerforge
250
250
  # Sets the period in ms with which the CALLBACK_VOLTAGE callback is triggered
251
251
  # periodically. A value of 0 turns the callback off.
252
252
  #
253
- # CALLBACK_VOLTAGE is only triggered if the voltage has changed since the
254
- # last triggering.
253
+ # The CALLBACK_VOLTAGE callback is only triggered if the voltage has changed since
254
+ # the last triggering.
255
255
  #
256
256
  # The default value is 0.
257
257
  def set_voltage_callback_period(period)
@@ -266,7 +266,7 @@ module Tinkerforge
266
266
  # Sets the period in ms with which the CALLBACK_POWER callback is triggered
267
267
  # periodically. A value of 0 turns the callback off.
268
268
  #
269
- # CALLBACK_POWER is only triggered if the power has changed since the
269
+ # The CALLBACK_POWER callback is only triggered if the power has changed since the
270
270
  # last triggering.
271
271
  #
272
272
  # The default value is 0.
@@ -279,7 +279,7 @@ module Tinkerforge
279
279
  send_request(FUNCTION_GET_POWER_CALLBACK_PERIOD, [], '', 4, 'L')
280
280
  end
281
281
 
282
- # Sets the thresholds for the CALLBACK_CURRENT_REACHED callback.
282
+ # Sets the thresholds for the CALLBACK_CURRENT_REACHED callback.
283
283
  #
284
284
  # The following options are possible:
285
285
  #
@@ -301,7 +301,7 @@ module Tinkerforge
301
301
  send_request(FUNCTION_GET_CURRENT_CALLBACK_THRESHOLD, [], '', 9, 'k l l')
302
302
  end
303
303
 
304
- # Sets the thresholds for the CALLBACK_VOLTAGE_REACHED callback.
304
+ # Sets the thresholds for the CALLBACK_VOLTAGE_REACHED callback.
305
305
  #
306
306
  # The following options are possible:
307
307
  #
@@ -323,7 +323,7 @@ module Tinkerforge
323
323
  send_request(FUNCTION_GET_VOLTAGE_CALLBACK_THRESHOLD, [], '', 9, 'k l l')
324
324
  end
325
325
 
326
- # Sets the thresholds for the CALLBACK_POWER_REACHED callback.
326
+ # Sets the thresholds for the CALLBACK_POWER_REACHED callback.
327
327
  #
328
328
  # The following options are possible:
329
329
  #
@@ -369,7 +369,7 @@ module Tinkerforge
369
369
  send_request(FUNCTION_GET_DEBOUNCE_PERIOD, [], '', 4, 'L')
370
370
  end
371
371
 
372
- # Returns the UID, the UID where the Bricklet is connected to,
372
+ # Returns the UID, the UID where the Bricklet is connected to,
373
373
  # the position, the hardware and firmware version as well as the
374
374
  # device identifier.
375
375
  #
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Tinkerforge
3
- VERSION = '2.1.11'
3
+ VERSION = '2.1.12'
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.1.11
4
+ version: 2.1.12
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: 2017-01-25 00:00:00.000000000 Z
12
+ date: 2017-04-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: matthias@tinkerforge.com
@@ -76,6 +76,7 @@ files:
76
76
  - lib/tinkerforge/brick_red.rb
77
77
  - lib/tinkerforge/bricklet_temperature_ir.rb
78
78
  - lib/tinkerforge/bricklet_dual_button.rb
79
+ - lib/tinkerforge/brick_silent_stepper.rb
79
80
  - lib/tinkerforge/bricklet_load_cell.rb
80
81
  - lib/tinkerforge/bricklet_segment_display_4x7.rb
81
82
  - lib/tinkerforge/bricklet_distance_us.rb