tinkerforge 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/tinkerforge/brick_dc.rb +2 -2
- data/lib/tinkerforge/brick_imu.rb +2 -2
- data/lib/tinkerforge/brick_master.rb +2 -2
- data/lib/tinkerforge/brick_servo.rb +2 -2
- data/lib/tinkerforge/brick_stepper.rb +2 -2
- data/lib/tinkerforge/bricklet_ambient_light.rb +2 -2
- data/lib/tinkerforge/bricklet_analog_in.rb +2 -2
- data/lib/tinkerforge/bricklet_analog_out.rb +2 -2
- data/lib/tinkerforge/bricklet_barometer.rb +2 -2
- data/lib/tinkerforge/bricklet_current12.rb +2 -2
- data/lib/tinkerforge/bricklet_current25.rb +2 -2
- data/lib/tinkerforge/bricklet_distance_ir.rb +2 -2
- data/lib/tinkerforge/bricklet_distance_us.rb +2 -2
- data/lib/tinkerforge/bricklet_dual_button.rb +2 -2
- data/lib/tinkerforge/bricklet_dual_relay.rb +2 -2
- data/lib/tinkerforge/bricklet_gps.rb +2 -2
- data/lib/tinkerforge/bricklet_hall_effect.rb +2 -2
- data/lib/tinkerforge/bricklet_humidity.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_digital_in_4.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_digital_out_4.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_dual_0_20ma.rb +2 -2
- data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +2 -2
- data/lib/tinkerforge/bricklet_io16.rb +2 -2
- data/lib/tinkerforge/bricklet_io4.rb +2 -2
- data/lib/tinkerforge/bricklet_joystick.rb +2 -2
- data/lib/tinkerforge/bricklet_lcd_16x2.rb +2 -2
- data/lib/tinkerforge/bricklet_lcd_20x4.rb +3 -3
- data/lib/tinkerforge/bricklet_led_strip.rb +35 -4
- data/lib/tinkerforge/bricklet_line.rb +2 -2
- data/lib/tinkerforge/bricklet_linear_poti.rb +2 -2
- data/lib/tinkerforge/bricklet_moisture.rb +2 -2
- data/lib/tinkerforge/bricklet_motion_detector.rb +2 -2
- data/lib/tinkerforge/bricklet_multi_touch.rb +2 -2
- data/lib/tinkerforge/bricklet_piezo_buzzer.rb +2 -2
- data/lib/tinkerforge/bricklet_piezo_speaker.rb +2 -2
- data/lib/tinkerforge/bricklet_ptc.rb +2 -2
- data/lib/tinkerforge/bricklet_remote_switch.rb +2 -2
- data/lib/tinkerforge/bricklet_rotary_encoder.rb +2 -2
- data/lib/tinkerforge/bricklet_rotary_poti.rb +2 -2
- data/lib/tinkerforge/bricklet_segment_display_4x7.rb +2 -2
- data/lib/tinkerforge/bricklet_sound_intensity.rb +2 -2
- data/lib/tinkerforge/bricklet_temperature.rb +2 -2
- data/lib/tinkerforge/bricklet_temperature_ir.rb +2 -2
- data/lib/tinkerforge/bricklet_tilt.rb +2 -2
- data/lib/tinkerforge/bricklet_voltage.rb +2 -2
- data/lib/tinkerforge/bricklet_voltage_current.rb +2 -2
- data/lib/tinkerforge/version.rb +1 -1
- metadata +3 -3
data/lib/tinkerforge/brick_dc.rb
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
|
2
2
|
#############################################################
|
|
3
|
-
# This file was automatically generated on 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 #
|
|
@@ -141,7 +141,7 @@ module Tinkerforge
|
|
|
141
141
|
# * ``character[7] = 0b00000000`` (decimal value 0)
|
|
142
142
|
#
|
|
143
143
|
# The characters can later be written with BrickletLCD20x4#write_line by using the
|
|
144
|
-
# characters with the byte representation 8 to 15.
|
|
144
|
+
# characters with the byte representation 8 ("\x08") to 15 ("\x0F").
|
|
145
145
|
#
|
|
146
146
|
# You can play around with the custom characters in Brick Viewer version
|
|
147
147
|
# since 2.0.1.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
|
2
2
|
#############################################################
|
|
3
|
-
# This file was automatically generated on 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 #
|
|
@@ -29,15 +29,20 @@ module Tinkerforge
|
|
|
29
29
|
FUNCTION_GET_SUPPLY_VOLTAGE = 5 # :nodoc:
|
|
30
30
|
FUNCTION_SET_CLOCK_FREQUENCY = 7 # :nodoc:
|
|
31
31
|
FUNCTION_GET_CLOCK_FREQUENCY = 8 # :nodoc:
|
|
32
|
+
FUNCTION_SET_CHIP_TYPE = 9 # :nodoc:
|
|
33
|
+
FUNCTION_GET_CHIP_TYPE = 10 # :nodoc:
|
|
32
34
|
FUNCTION_GET_IDENTITY = 255 # :nodoc:
|
|
33
35
|
|
|
36
|
+
CHIP_TYPE_WS2801 = 2801 # :nodoc:
|
|
37
|
+
CHIP_TYPE_WS2811 = 2811 # :nodoc:
|
|
38
|
+
CHIP_TYPE_WS2812 = 2812 # :nodoc:
|
|
34
39
|
|
|
35
40
|
# Creates an object with the unique device ID <tt>uid</tt> and adds it to
|
|
36
41
|
# the IP Connection <tt>ipcon</tt>.
|
|
37
42
|
def initialize(uid, ipcon)
|
|
38
43
|
super uid, ipcon
|
|
39
44
|
|
|
40
|
-
@api_version = [2, 0,
|
|
45
|
+
@api_version = [2, 0, 2]
|
|
41
46
|
|
|
42
47
|
@response_expected[FUNCTION_SET_RGB_VALUES] = RESPONSE_EXPECTED_FALSE
|
|
43
48
|
@response_expected[FUNCTION_GET_RGB_VALUES] = RESPONSE_EXPECTED_ALWAYS_TRUE
|
|
@@ -47,6 +52,8 @@ module Tinkerforge
|
|
|
47
52
|
@response_expected[CALLBACK_FRAME_RENDERED] = RESPONSE_EXPECTED_ALWAYS_FALSE
|
|
48
53
|
@response_expected[FUNCTION_SET_CLOCK_FREQUENCY] = RESPONSE_EXPECTED_FALSE
|
|
49
54
|
@response_expected[FUNCTION_GET_CLOCK_FREQUENCY] = RESPONSE_EXPECTED_ALWAYS_TRUE
|
|
55
|
+
@response_expected[FUNCTION_SET_CHIP_TYPE] = RESPONSE_EXPECTED_FALSE
|
|
56
|
+
@response_expected[FUNCTION_GET_CHIP_TYPE] = RESPONSE_EXPECTED_ALWAYS_TRUE
|
|
50
57
|
@response_expected[FUNCTION_GET_IDENTITY] = RESPONSE_EXPECTED_ALWAYS_TRUE
|
|
51
58
|
|
|
52
59
|
@callback_formats[CALLBACK_FRAME_RENDERED] = 'S'
|
|
@@ -148,13 +155,37 @@ module Tinkerforge
|
|
|
148
155
|
send_request(FUNCTION_SET_CLOCK_FREQUENCY, [frequency], 'L', 0, '')
|
|
149
156
|
end
|
|
150
157
|
|
|
151
|
-
# Returns the currently used clock frequency.
|
|
158
|
+
# Returns the currently used clock frequency as set by BrickletLEDStrip#set_clock_frequency.
|
|
152
159
|
#
|
|
153
160
|
# .. versionadded:: 2.0.1~(Plugin)
|
|
154
161
|
def get_clock_frequency
|
|
155
162
|
send_request(FUNCTION_GET_CLOCK_FREQUENCY, [], '', 4, 'L')
|
|
156
163
|
end
|
|
157
164
|
|
|
165
|
+
# Sets the type of the led driver chip. We currently support
|
|
166
|
+
# the chips
|
|
167
|
+
#
|
|
168
|
+
# * WS2801,
|
|
169
|
+
# * WS2811 and
|
|
170
|
+
# * WS2812.
|
|
171
|
+
#
|
|
172
|
+
# The WS2812 is sometimes also called "NeoPixel", a name coined by
|
|
173
|
+
# Adafruit.
|
|
174
|
+
#
|
|
175
|
+
# The default value is WS2801 = 2801.
|
|
176
|
+
#
|
|
177
|
+
# .. versionadded:: 2.0.2~(Plugin)
|
|
178
|
+
def set_chip_type(chip)
|
|
179
|
+
send_request(FUNCTION_SET_CHIP_TYPE, [chip], 'S', 0, '')
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Returns the currently used chip type as set by BrickletLEDStrip#set_chip_type.
|
|
183
|
+
#
|
|
184
|
+
# .. versionadded:: 2.0.2~(Plugin)
|
|
185
|
+
def get_chip_type
|
|
186
|
+
send_request(FUNCTION_GET_CHIP_TYPE, [], '', 2, 'S')
|
|
187
|
+
end
|
|
188
|
+
|
|
158
189
|
# Returns the UID, the UID where the Bricklet is connected to,
|
|
159
190
|
# the position, the hardware and firmware version as well as the
|
|
160
191
|
# device identifier.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
|
2
2
|
#############################################################
|
|
3
|
-
# This file was automatically generated on 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 2014-
|
|
3
|
+
# This file was automatically generated on 2014-07-03. #
|
|
4
4
|
# #
|
|
5
|
-
# Bindings Version 2.1.
|
|
5
|
+
# Bindings Version 2.1.1 #
|
|
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 #
|
data/lib/tinkerforge/version.rb
CHANGED
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.
|
|
4
|
+
version: 2.1.1
|
|
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: 2014-
|
|
12
|
+
date: 2014-07-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description:
|
|
15
15
|
email: matthias@tinkerforge.com
|
|
@@ -89,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
89
89
|
version: '0'
|
|
90
90
|
requirements: []
|
|
91
91
|
rubyforge_project:
|
|
92
|
-
rubygems_version: 1.8.
|
|
92
|
+
rubygems_version: 1.8.23
|
|
93
93
|
signing_key:
|
|
94
94
|
specification_version: 3
|
|
95
95
|
summary: Ruby API Bindings for Tinkerforge Bricks and Bricklets
|