tinkerforge 2.1.7 → 2.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) 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_imu_v2.rb +2 -2
  4. data/lib/tinkerforge/brick_master.rb +2 -2
  5. data/lib/tinkerforge/brick_red.rb +2 -2
  6. data/lib/tinkerforge/brick_servo.rb +2 -2
  7. data/lib/tinkerforge/brick_stepper.rb +2 -2
  8. data/lib/tinkerforge/bricklet_accelerometer.rb +2 -2
  9. data/lib/tinkerforge/bricklet_ambient_light.rb +2 -2
  10. data/lib/tinkerforge/bricklet_ambient_light_v2.rb +2 -2
  11. data/lib/tinkerforge/bricklet_analog_in.rb +2 -2
  12. data/lib/tinkerforge/bricklet_analog_in_v2.rb +2 -2
  13. data/lib/tinkerforge/bricklet_analog_out.rb +2 -2
  14. data/lib/tinkerforge/bricklet_analog_out_v2.rb +2 -2
  15. data/lib/tinkerforge/bricklet_barometer.rb +2 -2
  16. data/lib/tinkerforge/bricklet_co2.rb +2 -2
  17. data/lib/tinkerforge/bricklet_color.rb +2 -2
  18. data/lib/tinkerforge/bricklet_current12.rb +2 -2
  19. data/lib/tinkerforge/bricklet_current25.rb +2 -2
  20. data/lib/tinkerforge/bricklet_distance_ir.rb +2 -2
  21. data/lib/tinkerforge/bricklet_distance_us.rb +2 -2
  22. data/lib/tinkerforge/bricklet_dual_button.rb +2 -2
  23. data/lib/tinkerforge/bricklet_dual_relay.rb +2 -2
  24. data/lib/tinkerforge/bricklet_dust_detector.rb +2 -2
  25. data/lib/tinkerforge/bricklet_gps.rb +8 -8
  26. data/lib/tinkerforge/bricklet_hall_effect.rb +2 -2
  27. data/lib/tinkerforge/bricklet_humidity.rb +2 -2
  28. data/lib/tinkerforge/bricklet_industrial_analog_out.rb +2 -2
  29. data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +2 -2
  30. data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +2 -2
  31. data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +2 -2
  32. data/lib/tinkerforge/bricklet_industrial_dual_analog_in.rb +2 -2
  33. data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +2 -2
  34. data/lib/tinkerforge/bricklet_io16.rb +2 -2
  35. data/lib/tinkerforge/bricklet_io4.rb +2 -2
  36. data/lib/tinkerforge/bricklet_joystick.rb +2 -2
  37. data/lib/tinkerforge/bricklet_laser_range_finder.rb +2 -2
  38. data/lib/tinkerforge/bricklet_lcd_16x2.rb +2 -2
  39. data/lib/tinkerforge/bricklet_lcd_20x4.rb +2 -2
  40. data/lib/tinkerforge/bricklet_led_strip.rb +2 -2
  41. data/lib/tinkerforge/bricklet_line.rb +2 -2
  42. data/lib/tinkerforge/bricklet_linear_poti.rb +2 -2
  43. data/lib/tinkerforge/bricklet_load_cell.rb +2 -2
  44. data/lib/tinkerforge/bricklet_moisture.rb +2 -2
  45. data/lib/tinkerforge/bricklet_motion_detector.rb +2 -2
  46. data/lib/tinkerforge/bricklet_multi_touch.rb +2 -2
  47. data/lib/tinkerforge/bricklet_nfc_rfid.rb +2 -2
  48. data/lib/tinkerforge/bricklet_oled_128x64.rb +4 -4
  49. data/lib/tinkerforge/bricklet_oled_64x48.rb +5 -5
  50. data/lib/tinkerforge/bricklet_piezo_buzzer.rb +2 -2
  51. data/lib/tinkerforge/bricklet_piezo_speaker.rb +2 -2
  52. data/lib/tinkerforge/bricklet_ptc.rb +2 -2
  53. data/lib/tinkerforge/bricklet_real_time_clock.rb +133 -0
  54. data/lib/tinkerforge/bricklet_remote_switch.rb +2 -2
  55. data/lib/tinkerforge/bricklet_rotary_encoder.rb +2 -2
  56. data/lib/tinkerforge/bricklet_rotary_poti.rb +2 -2
  57. data/lib/tinkerforge/bricklet_rs232.rb +2 -2
  58. data/lib/tinkerforge/bricklet_segment_display_4x7.rb +2 -2
  59. data/lib/tinkerforge/bricklet_solid_state_relay.rb +2 -2
  60. data/lib/tinkerforge/bricklet_sound_intensity.rb +2 -2
  61. data/lib/tinkerforge/bricklet_temperature.rb +2 -2
  62. data/lib/tinkerforge/bricklet_temperature_ir.rb +2 -2
  63. data/lib/tinkerforge/bricklet_thermocouple.rb +2 -2
  64. data/lib/tinkerforge/bricklet_tilt.rb +2 -2
  65. data/lib/tinkerforge/bricklet_uv_light.rb +4 -4
  66. data/lib/tinkerforge/bricklet_voltage.rb +2 -2
  67. data/lib/tinkerforge/bricklet_voltage_current.rb +2 -2
  68. data/lib/tinkerforge/version.rb +1 -1
  69. metadata +3 -2
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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,7 +89,7 @@ module Tinkerforge
89
89
  def initialize(uid, ipcon)
90
90
  super uid, ipcon
91
91
 
92
- @api_version = [2, 0, 0]
92
+ @api_version = [2, 0, 1]
93
93
 
94
94
  @response_expected[FUNCTION_GET_COORDINATES] = RESPONSE_EXPECTED_ALWAYS_TRUE
95
95
  @response_expected[FUNCTION_GET_STATUS] = RESPONSE_EXPECTED_ALWAYS_TRUE
@@ -116,7 +116,7 @@ module Tinkerforge
116
116
 
117
117
  @callback_formats[CALLBACK_COORDINATES] = 'L k L k S S S S'
118
118
  @callback_formats[CALLBACK_STATUS] = 'C C C'
119
- @callback_formats[CALLBACK_ALTITUDE] = 'L L'
119
+ @callback_formats[CALLBACK_ALTITUDE] = 'l l'
120
120
  @callback_formats[CALLBACK_MOTION] = 'L L'
121
121
  @callback_formats[CALLBACK_DATE_TIME] = 'L L'
122
122
  end
@@ -150,9 +150,9 @@ module Tinkerforge
150
150
  #
151
151
  # "Value", "Description"
152
152
  #
153
- # "1", "No Fix, BrickletGPS#get_coordinates and BrickletGPS#get_altitude return invalid data"
154
- # "2", "2D Fix, only BrickletGPS#get_coordinates returns valid data"
155
- # "3", "3D Fix, BrickletGPS#get_coordinates and BrickletGPS#get_altitude return valid data"
153
+ # "1", "No Fix, BrickletGPS#get_coordinates, BrickletGPS#get_altitude and BrickletGPS#get_motion return invalid data"
154
+ # "2", "2D Fix, only BrickletGPS#get_coordinates and BrickletGPS#get_motion return valid data"
155
+ # "3", "3D Fix, BrickletGPS#get_coordinates, BrickletGPS#get_altitude and BrickletGPS#get_motion return valid data"
156
156
  #
157
157
  # There is also a :ref:`blue LED <gps_bricklet_fix_led>` on the Bricklet that
158
158
  # indicates the fix status.
@@ -167,7 +167,7 @@ module Tinkerforge
167
167
  # This data is only valid if there is currently a fix as indicated by
168
168
  # BrickletGPS#get_status.
169
169
  def get_altitude
170
- send_request(FUNCTION_GET_ALTITUDE, [], '', 8, 'L L')
170
+ send_request(FUNCTION_GET_ALTITUDE, [], '', 8, 'l l')
171
171
  end
172
172
 
173
173
  # Returns the current course and speed. Course is given in hundredths degree
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 #
@@ -10,7 +10,7 @@
10
10
  #############################################################
11
11
 
12
12
  module Tinkerforge
13
- # 1.3" OLED with 128x64 pixels
13
+ # 3.3cm (1.3") OLED with 128x64 pixels
14
14
  class BrickletOLED128x64 < Device
15
15
  DEVICE_IDENTIFIER = 263 # :nodoc:
16
16
  DEVICE_DISPLAY_NAME = 'OLED 128x64 Bricklet' # :nodoc:
@@ -73,7 +73,7 @@ module Tinkerforge
73
73
  send_request(FUNCTION_NEW_WINDOW, [column_from, column_to, row_from, row_to], 'C C C C', 0, '')
74
74
  end
75
75
 
76
- # Clears the current content of the display.
76
+ # Clears the current content of the window as set by BrickletOLED128x64#new_window.
77
77
  def clear_display
78
78
  send_request(FUNCTION_CLEAR_DISPLAY, [], '', 0, '')
79
79
  end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 #
@@ -10,7 +10,7 @@
10
10
  #############################################################
11
11
 
12
12
  module Tinkerforge
13
- # 0.66" OLED with 64x48 pixels
13
+ # 1.68cm (0.66") OLED with 64x48 pixels
14
14
  class BrickletOLED64x48 < Device
15
15
  DEVICE_IDENTIFIER = 264 # :nodoc:
16
16
  DEVICE_DISPLAY_NAME = 'OLED 64x48 Bricklet' # :nodoc:
@@ -72,7 +72,7 @@ module Tinkerforge
72
72
  send_request(FUNCTION_NEW_WINDOW, [column_from, column_to, row_from, row_to], 'C C C C', 0, '')
73
73
  end
74
74
 
75
- # Clears the current content of the display.
75
+ # Clears the current content of the window as set by BrickletOLED64x48#new_window.
76
76
  def clear_display
77
77
  send_request(FUNCTION_CLEAR_DISPLAY, [], '', 0, '')
78
78
  end
@@ -93,7 +93,7 @@ module Tinkerforge
93
93
  end
94
94
 
95
95
  # Writes text to a specific line (0 to 5) with a specific position
96
- # (0 to 13). The text can have a maximum of 14 characters.
96
+ # (0 to 12). The text can have a maximum of 13 characters.
97
97
  #
98
98
  # For example: (1, 4, "Hello") will write *Hello* in the middle of the
99
99
  # second line of the display.
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 #
@@ -0,0 +1,133 @@
1
+ # -*- ruby encoding: utf-8 -*-
2
+ #############################################################
3
+ # This file was automatically generated on 2016-02-10. #
4
+ # #
5
+ # Ruby Bindings Version 2.1.8 #
6
+ # #
7
+ # If you have a bugfix for this file and want to commit it, #
8
+ # please fix the bug in the generator. You can find a link #
9
+ # to the generators git repository on tinkerforge.com #
10
+ #############################################################
11
+
12
+ module Tinkerforge
13
+ # Battery-backed real-time clock
14
+ class BrickletRealTimeClock < Device
15
+ DEVICE_IDENTIFIER = 268 # :nodoc:
16
+ DEVICE_DISPLAY_NAME = 'Real-Time Clock Bricklet' # :nodoc:
17
+
18
+ FUNCTION_SET_DATE_TIME = 1 # :nodoc:
19
+ FUNCTION_GET_DATE_TIME = 2 # :nodoc:
20
+ FUNCTION_GET_TIMESTAMP = 3 # :nodoc:
21
+ FUNCTION_SET_OFFSET = 4 # :nodoc:
22
+ FUNCTION_GET_OFFSET = 5 # :nodoc:
23
+ FUNCTION_GET_IDENTITY = 255 # :nodoc:
24
+
25
+ WEEKDAY_MONDAY = 1 # :nodoc:
26
+ WEEKDAY_TUESDAY = 2 # :nodoc:
27
+ WEEKDAY_WEDNESDAY = 3 # :nodoc:
28
+ WEEKDAY_THURSDAY = 4 # :nodoc:
29
+ WEEKDAY_FRIDAY = 5 # :nodoc:
30
+ WEEKDAY_SATURDAY = 6 # :nodoc:
31
+ WEEKDAY_SUNDAY = 7 # :nodoc:
32
+
33
+ # Creates an object with the unique device ID <tt>uid</tt> and adds it to
34
+ # the IP Connection <tt>ipcon</tt>.
35
+ def initialize(uid, ipcon)
36
+ super uid, ipcon
37
+
38
+ @api_version = [2, 0, 0]
39
+
40
+ @response_expected[FUNCTION_SET_DATE_TIME] = RESPONSE_EXPECTED_FALSE
41
+ @response_expected[FUNCTION_GET_DATE_TIME] = RESPONSE_EXPECTED_ALWAYS_TRUE
42
+ @response_expected[FUNCTION_GET_TIMESTAMP] = RESPONSE_EXPECTED_ALWAYS_TRUE
43
+ @response_expected[FUNCTION_SET_OFFSET] = RESPONSE_EXPECTED_FALSE
44
+ @response_expected[FUNCTION_GET_OFFSET] = RESPONSE_EXPECTED_ALWAYS_TRUE
45
+ @response_expected[FUNCTION_GET_IDENTITY] = RESPONSE_EXPECTED_ALWAYS_TRUE
46
+
47
+ end
48
+
49
+ # Sets the current date (including weekday) and the current time with hundredths
50
+ # of a second resolution.
51
+ #
52
+ # Possible value ranges:
53
+ #
54
+ # * Year: 2000 to 2099
55
+ # * Month: 1 to 12 (January to December)
56
+ # * Day: 1 to 31
57
+ # * Hour: 0 to 23
58
+ # * Minute: 0 to 59
59
+ # * Second: 0 to 59
60
+ # * Centisecond: 0 to 99
61
+ # * Weekday: 1 to 7 (Monday to Sunday)
62
+ #
63
+ # If the backup battery is installed then the real-time clock keeps date and
64
+ # time even if the Bricklet is not powered by a Brick.
65
+ #
66
+ # The real-time clock handles leap year and inserts the 29th of February
67
+ # accordingly. But leap seconds, time zones and daylight saving time are not
68
+ # handled.
69
+ def set_date_time(year, month, day, hour, minute, second, centisecond, weekday)
70
+ send_request(FUNCTION_SET_DATE_TIME, [year, month, day, hour, minute, second, centisecond, weekday], 'S C C C C C C C', 0, '')
71
+ end
72
+
73
+ # Returns the current date (including weekday) and the current time of the
74
+ # real-time clock with hundredths of a second resolution.
75
+ def get_date_time
76
+ send_request(FUNCTION_GET_DATE_TIME, [], '', 9, 'S C C C C C C C')
77
+ end
78
+
79
+ # Returns the current date and the time of the real-time clock converted to
80
+ # milliseconds. The timestamp has an effective resolution of hundredths of a
81
+ # second.
82
+ def get_timestamp
83
+ send_request(FUNCTION_GET_TIMESTAMP, [], '', 8, 'q')
84
+ end
85
+
86
+ # Sets the offset the real-time clock should compensate for in 2.17 ppm steps
87
+ # between -277.76 ppm (-128) and +275.59 ppm (127).
88
+ #
89
+ # The real-time clock time can deviate from the actual time due to the frequency
90
+ # deviation of its 32.768 kHz crystal. Even without compensation (factory
91
+ # default) the resulting time deviation should be at most ±20 ppm (±52.6
92
+ # seconds per month).
93
+ #
94
+ # This deviation can be calculated by comparing the same duration measured by the
95
+ # real-time clock (``rtc_duration``) an accurate reference clock
96
+ # (``ref_duration``).
97
+ #
98
+ # For best results the configured offset should be set to 0 ppm first and then a
99
+ # duration of at least 6 hours should be measured.
100
+ #
101
+ # The new offset (``new_offset``) can be calculated from the currently configured
102
+ # offset (``current_offset``) and the measured durations as follow::
103
+ #
104
+ # new_offset = current_offset - round(1000000 * (rtc_duration - ref_duration) / rtc_duration / 2.17)
105
+ #
106
+ # If you want to calculate the offset, then we recommend using the calibration
107
+ # dialog in Brick Viewer, instead of doing it manually.
108
+ #
109
+ # The offset is saved in the EEPROM of the Bricklet and only needs to be
110
+ # configured once.
111
+ def set_offset(offset)
112
+ send_request(FUNCTION_SET_OFFSET, [offset], 'c', 0, '')
113
+ end
114
+
115
+ # Returns the offset as set by BrickletRealTimeClock#set_offset.
116
+ def get_offset
117
+ send_request(FUNCTION_GET_OFFSET, [], '', 1, 'c')
118
+ end
119
+
120
+ # Returns the UID, the UID where the Bricklet is connected to,
121
+ # the position, the hardware and firmware version as well as the
122
+ # device identifier.
123
+ #
124
+ # The position can be 'a', 'b', 'c' or 'd'.
125
+ #
126
+ # The device identifier numbers can be found :ref:`here <device_identifier>`.
127
+ # |device_identifier_constant|
128
+ def get_identity
129
+ send_request(FUNCTION_GET_IDENTITY, [], '', 25, 'Z8 Z8 k C3 C3 S')
130
+ end
131
+
132
+ end
133
+ end
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 #
@@ -10,7 +10,7 @@
10
10
  #############################################################
11
11
 
12
12
  module Tinkerforge
13
- # Measures UV Light
13
+ # Measures UV light
14
14
  class BrickletUVLight < Device
15
15
  DEVICE_IDENTIFIER = 265 # :nodoc:
16
16
  DEVICE_DISPLAY_NAME = 'UV Light Bricklet' # :nodoc:
@@ -68,7 +68,7 @@ module Tinkerforge
68
68
  @callback_formats[CALLBACK_UV_LIGHT_REACHED] = 'L'
69
69
  end
70
70
 
71
- # Returns the UV Light intensity of the sensor, the intensity is given
71
+ # Returns the UV light intensity of the sensor, the intensity is given
72
72
  # in µW/cm².
73
73
  #
74
74
  # To get UV Index you have to divide the value by 250. For example, a UV Light
@@ -1,8 +1,8 @@
1
1
  # -*- ruby encoding: utf-8 -*-
2
2
  #############################################################
3
- # This file was automatically generated on 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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 2016-01-06. #
3
+ # This file was automatically generated on 2016-02-10. #
4
4
  # #
5
- # Ruby Bindings Version 2.1.7 #
5
+ # Ruby Bindings Version 2.1.8 #
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.1.7'
3
+ VERSION = '2.1.8'
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.7
4
+ version: 2.1.8
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: 2016-01-06 00:00:00.000000000 Z
12
+ date: 2016-02-10 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email: matthias@tinkerforge.com
@@ -53,6 +53,7 @@ files:
53
53
  - lib/tinkerforge/bricklet_nfc_rfid.rb
54
54
  - lib/tinkerforge/ip_connection.rb
55
55
  - lib/tinkerforge/bricklet_lcd_16x2.rb
56
+ - lib/tinkerforge/bricklet_real_time_clock.rb
56
57
  - lib/tinkerforge/bricklet_color.rb
57
58
  - lib/tinkerforge/bricklet_dual_relay.rb
58
59
  - lib/tinkerforge/bricklet_ambient_light_v2.rb