tinkerforge 2.0.8 → 2.0.9
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 +6 -4
- data/lib/tinkerforge/brick_imu.rb +20 -17
- data/lib/tinkerforge/brick_master.rb +62 -58
- data/lib/tinkerforge/brick_servo.rb +6 -4
- data/lib/tinkerforge/brick_stepper.rb +6 -4
- data/lib/tinkerforge/bricklet_ambient_light.rb +6 -4
- data/lib/tinkerforge/bricklet_analog_in.rb +8 -6
- data/lib/tinkerforge/bricklet_analog_out.rb +2 -2
- data/lib/tinkerforge/bricklet_barometer.rb +6 -4
- data/lib/tinkerforge/bricklet_current12.rb +6 -4
- data/lib/tinkerforge/bricklet_current25.rb +6 -4
- data/lib/tinkerforge/bricklet_distance_ir.rb +6 -4
- data/lib/tinkerforge/bricklet_dual_relay.rb +2 -2
- data/lib/tinkerforge/bricklet_gps.rb +7 -7
- data/lib/tinkerforge/bricklet_humidity.rb +6 -4
- 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 +7 -6
- data/lib/tinkerforge/bricklet_industrial_quad_relay.rb +2 -2
- data/lib/tinkerforge/bricklet_io16.rb +3 -3
- data/lib/tinkerforge/bricklet_io4.rb +2 -2
- data/lib/tinkerforge/bricklet_joystick.rb +6 -4
- data/lib/tinkerforge/bricklet_lcd_16x2.rb +12 -12
- data/lib/tinkerforge/bricklet_lcd_20x4.rb +12 -12
- data/lib/tinkerforge/bricklet_linear_poti.rb +6 -4
- data/lib/tinkerforge/bricklet_piezo_buzzer.rb +2 -2
- data/lib/tinkerforge/bricklet_ptc.rb +9 -7
- data/lib/tinkerforge/bricklet_rotary_poti.rb +6 -4
- data/lib/tinkerforge/bricklet_temperature.rb +4 -4
- data/lib/tinkerforge/bricklet_temperature_ir.rb +6 -4
- data/lib/tinkerforge/bricklet_voltage.rb +6 -4
- data/lib/tinkerforge/bricklet_voltage_current.rb +8 -4
- data/lib/tinkerforge/ip_connection.rb +18 -13
- data/lib/tinkerforge/version.rb +1 -1
- metadata +3 -3
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2013-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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 #
|
@@ -71,7 +71,7 @@ module Tinkerforge
|
|
71
71
|
RANGE_UP_TO_6V = 1 # :nodoc:
|
72
72
|
RANGE_UP_TO_10V = 2 # :nodoc:
|
73
73
|
RANGE_UP_TO_36V = 3 # :nodoc:
|
74
|
-
RANGE_UP_TO_45V =
|
74
|
+
RANGE_UP_TO_45V = 4 # :nodoc:
|
75
75
|
|
76
76
|
# Creates an object with the unique device ID <tt>uid</tt> and adds it to
|
77
77
|
# the IP Connection <tt>ipcon</tt>.
|
@@ -211,11 +211,13 @@ module Tinkerforge
|
|
211
211
|
|
212
212
|
# Sets the period in ms with which the threshold callbacks
|
213
213
|
#
|
214
|
-
#
|
214
|
+
# * CALLBACK_VOLTAGE_REACHED,
|
215
|
+
# * CALLBACK_ANALOG_VALUE_REACHED
|
215
216
|
#
|
216
217
|
# are triggered, if the thresholds
|
217
218
|
#
|
218
|
-
#
|
219
|
+
# * BrickletAnalogIn#set_voltage_callback_threshold,
|
220
|
+
# * BrickletAnalogIn#set_analog_value_callback_threshold
|
219
221
|
#
|
220
222
|
# keep being reached.
|
221
223
|
#
|
@@ -235,7 +237,7 @@ module Tinkerforge
|
|
235
237
|
# * 1: 0V - 6.05V, ~1.48mV resolution
|
236
238
|
# * 2: 0V - 10.32V, ~2.52mV resolution
|
237
239
|
# * 3: 0V - 36.30V, ~8.86mV resolution
|
238
|
-
# *
|
240
|
+
# * 4: 0V - 45.00V, ~11.25mV resolution
|
239
241
|
#
|
240
242
|
# The default measurement range is 0.
|
241
243
|
#
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2013-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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 #
|
@@ -207,11 +207,13 @@ module Tinkerforge
|
|
207
207
|
|
208
208
|
# Sets the period in ms with which the threshold callbacks
|
209
209
|
#
|
210
|
-
#
|
210
|
+
# * CALLBACK_AIR_PRESSURE_REACHED,
|
211
|
+
# * CALLBACK_ALTITUDE_REACHED
|
211
212
|
#
|
212
213
|
# are triggered, if the thresholds
|
213
214
|
#
|
214
|
-
#
|
215
|
+
# * BrickletBarometer#set_air_pressure_callback_threshold,
|
216
|
+
# * BrickletBarometer#set_altitude_callback_threshold
|
215
217
|
#
|
216
218
|
# keep being reached.
|
217
219
|
#
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2013-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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 #
|
@@ -234,11 +234,13 @@ module Tinkerforge
|
|
234
234
|
|
235
235
|
# Sets the period in ms with which the threshold callbacks
|
236
236
|
#
|
237
|
-
#
|
237
|
+
# * CALLBACK_CURRENT_REACHED,
|
238
|
+
# * CALLBACK_ANALOG_VALUE_REACHED
|
238
239
|
#
|
239
240
|
# are triggered, if the thresholds
|
240
241
|
#
|
241
|
-
#
|
242
|
+
# * BrickletCurrent12#set_current_callback_threshold,
|
243
|
+
# * BrickletCurrent12#set_analog_value_callback_threshold
|
242
244
|
#
|
243
245
|
# keep being reached.
|
244
246
|
#
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2013-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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 #
|
@@ -234,11 +234,13 @@ module Tinkerforge
|
|
234
234
|
|
235
235
|
# Sets the period in ms with which the threshold callbacks
|
236
236
|
#
|
237
|
-
#
|
237
|
+
# * CALLBACK_CURRENT_REACHED,
|
238
|
+
# * CALLBACK_ANALOG_VALUE_REACHED
|
238
239
|
#
|
239
240
|
# are triggered, if the thresholds
|
240
241
|
#
|
241
|
-
#
|
242
|
+
# * BrickletCurrent25#set_current_callback_threshold,
|
243
|
+
# * BrickletCurrent25#set_analog_value_callback_threshold
|
242
244
|
#
|
243
245
|
# keep being reached.
|
244
246
|
#
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2013-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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 #
|
@@ -234,11 +234,13 @@ module Tinkerforge
|
|
234
234
|
|
235
235
|
# Sets the period in ms with which the threshold callbacks
|
236
236
|
#
|
237
|
-
#
|
237
|
+
# * CALLBACK_DISTANCE_REACHED,
|
238
|
+
# * CALLBACK_ANALOG_VALUE_REACHED
|
238
239
|
#
|
239
240
|
# are triggered, if the thresholds
|
240
241
|
#
|
241
|
-
#
|
242
|
+
# * BrickletDistanceIR#set_distance_callback_threshold,
|
243
|
+
# * BrickletDistanceIR#set_analog_value_callback_threshold
|
242
244
|
#
|
243
245
|
# keep being reached.
|
244
246
|
#
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2013-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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 #
|
@@ -121,9 +121,9 @@ module Tinkerforge
|
|
121
121
|
end
|
122
122
|
|
123
123
|
# Returns the GPS coordinates. Latitude and longitude are given in the
|
124
|
-
# DD.dddddd
|
125
|
-
# The parameter ns and ew are the cardinal directions for
|
126
|
-
# latitude and longitude. Possible values for ns and ew are 'N', 'S', 'E'
|
124
|
+
# ``DD.dddddd°`` format, the value 57123468 means 57.123468°.
|
125
|
+
# The parameter ``ns`` and ``ew`` are the cardinal directions for
|
126
|
+
# latitude and longitude. Possible values for ``ns`` and ``ew`` are 'N', 'S', 'E'
|
127
127
|
# and 'W' (north, south, east and west).
|
128
128
|
#
|
129
129
|
# PDOP, HDOP and VDOP are the dilution of precision (DOP) values. They specify
|
@@ -180,8 +180,8 @@ module Tinkerforge
|
|
180
180
|
end
|
181
181
|
|
182
182
|
# Returns the current date and time. The date is
|
183
|
-
# given in the format ddmmyy and the time is given
|
184
|
-
# in the format hhmmss.sss
|
183
|
+
# given in the format ``ddmmyy`` and the time is given
|
184
|
+
# in the format ``hhmmss.sss``. For example, 140713 means
|
185
185
|
# 14.05.13 as date and 195923568 means 19:59:23.568 as time.
|
186
186
|
def get_date_time
|
187
187
|
send_request(FUNCTION_GET_DATE_TIME, [], '', 8, 'L L')
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2013-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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 #
|
@@ -205,11 +205,13 @@ module Tinkerforge
|
|
205
205
|
|
206
206
|
# Sets the period in ms with which the threshold callbacks
|
207
207
|
#
|
208
|
-
#
|
208
|
+
# * CALLBACK_HUMIDITY_REACHED,
|
209
|
+
# * CALLBACK_ANALOG_VALUE_REACHED
|
209
210
|
#
|
210
211
|
# are triggered, if the thresholds
|
211
212
|
#
|
212
|
-
#
|
213
|
+
# * BrickletHumidity#set_humidity_callback_threshold,
|
214
|
+
# * BrickletHumidity#set_analog_value_callback_threshold
|
213
215
|
#
|
214
216
|
# keep being reached.
|
215
217
|
#
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2013-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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 #
|
@@ -75,7 +75,7 @@ module Tinkerforge
|
|
75
75
|
@callback_formats[CALLBACK_CURRENT_REACHED] = 'C l'
|
76
76
|
end
|
77
77
|
|
78
|
-
# Returns the current of the sensor. The value is in nA
|
78
|
+
# Returns the current of the specified sensor (0 or 1). The value is in nA
|
79
79
|
# and between 0nA and 22505322nA (22.5mA).
|
80
80
|
#
|
81
81
|
# It is possible to detect if an IEC 60381-1 compatible sensor is connected
|
@@ -108,7 +108,8 @@ module Tinkerforge
|
|
108
108
|
send_request(FUNCTION_GET_CURRENT_CALLBACK_PERIOD, [sensor], 'C', 4, 'L')
|
109
109
|
end
|
110
110
|
|
111
|
-
# Sets the thresholds for the CALLBACK_CURRENT_REACHED callback for the given
|
111
|
+
# Sets the thresholds for the CALLBACK_CURRENT_REACHED callback for the given
|
112
|
+
# sensor.
|
112
113
|
#
|
113
114
|
# The following options are possible:
|
114
115
|
#
|
@@ -132,11 +133,11 @@ module Tinkerforge
|
|
132
133
|
|
133
134
|
# Sets the period in ms with which the threshold callback
|
134
135
|
#
|
135
|
-
#
|
136
|
+
# * CALLBACK_CURRENT_REACHED
|
136
137
|
#
|
137
138
|
# is triggered, if the threshold
|
138
139
|
#
|
139
|
-
#
|
140
|
+
# * BrickletIndustrialDual020mA#set_current_callback_threshold
|
140
141
|
#
|
141
142
|
# keeps being reached.
|
142
143
|
#
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2013-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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 #
|
@@ -108,7 +108,7 @@ module Tinkerforge
|
|
108
108
|
#
|
109
109
|
# For example:
|
110
110
|
#
|
111
|
-
# * ("a",
|
111
|
+
# * ("a", 255, 'i', true) will set all pins of port a as input pull-up.
|
112
112
|
# * ("a", 128, 'i', false) will set pin 7 of port a as input default (floating if nothing is connected).
|
113
113
|
# * ("b", 3, 'o', false) will set pins 0 and 1 of port b as output low.
|
114
114
|
# * ("b", 4, 'o', true) will set pin 2 of port b as output high.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2013-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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 #
|
@@ -234,11 +234,13 @@ module Tinkerforge
|
|
234
234
|
|
235
235
|
# Sets the period in ms with which the threshold callbacks
|
236
236
|
#
|
237
|
-
#
|
237
|
+
# * CALLBACK_POSITION_REACHED,
|
238
|
+
# * CALLBACK_ANALOG_VALUE_REACHED
|
238
239
|
#
|
239
240
|
# are triggered, if the thresholds
|
240
241
|
#
|
241
|
-
#
|
242
|
+
# * BrickletJoystick#set_position_callback_threshold,
|
243
|
+
# * BrickletJoystick#set_analog_value_callback_threshold
|
242
244
|
#
|
243
245
|
# keep being reached.
|
244
246
|
#
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2013-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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 #
|
@@ -122,20 +122,20 @@ module Tinkerforge
|
|
122
122
|
# the pixels, the first 5 bits of 8 bytes are used. For example, to make
|
123
123
|
# a custom character "H", you should transfer the following:
|
124
124
|
#
|
125
|
-
# * character[0] = 0b00010001 (decimal value 17)
|
126
|
-
# * character[1] = 0b00010001 (decimal value 17)
|
127
|
-
# * character[2] = 0b00010001 (decimal value 17)
|
128
|
-
# * character[3] = 0b00011111 (decimal value 31)
|
129
|
-
# * character[4] = 0b00010001 (decimal value 17)
|
130
|
-
# * character[5] = 0b00010001 (decimal value 17)
|
131
|
-
# * character[6] = 0b00010001 (decimal value 17)
|
132
|
-
# * character[7] = 0b00000000 (decimal value 0)
|
125
|
+
# * ``character[0] = 0b00010001`` (decimal value 17)
|
126
|
+
# * ``character[1] = 0b00010001`` (decimal value 17)
|
127
|
+
# * ``character[2] = 0b00010001`` (decimal value 17)
|
128
|
+
# * ``character[3] = 0b00011111`` (decimal value 31)
|
129
|
+
# * ``character[4] = 0b00010001`` (decimal value 17)
|
130
|
+
# * ``character[5] = 0b00010001`` (decimal value 17)
|
131
|
+
# * ``character[6] = 0b00010001`` (decimal value 17)
|
132
|
+
# * ``character[7] = 0b00000000`` (decimal value 0)
|
133
133
|
#
|
134
134
|
# The characters can later be written with BrickletLCD16x2#write_line by using the
|
135
135
|
# characters with the byte representation 8 to 15.
|
136
136
|
#
|
137
|
-
# You can play around with the custom characters in Brick Viewer
|
138
|
-
#
|
137
|
+
# You can play around with the custom characters in Brick Viewer since
|
138
|
+
# version 2.0.1.
|
139
139
|
#
|
140
140
|
# Custom characters are stored by the LCD in RAM, so they have to be set
|
141
141
|
# after each startup.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- ruby encoding: utf-8 -*-
|
2
2
|
#############################################################
|
3
|
-
# This file was automatically generated on 2013-
|
3
|
+
# This file was automatically generated on 2013-08-23. #
|
4
4
|
# #
|
5
|
-
# Bindings Version 2.0.
|
5
|
+
# Bindings Version 2.0.9 #
|
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 #
|
@@ -108,7 +108,7 @@ module Tinkerforge
|
|
108
108
|
# is one character behind the the last text written with
|
109
109
|
# BrickletLCD20x4#write_line.
|
110
110
|
#
|
111
|
-
# The default is (false
|
111
|
+
# The default is (*false*, *false*).
|
112
112
|
def set_config(cursor, blinking)
|
113
113
|
send_request(FUNCTION_SET_CONFIG, [cursor, blinking], '? ?', 0, '')
|
114
114
|
end
|
@@ -131,20 +131,20 @@ module Tinkerforge
|
|
131
131
|
# the pixels, the first 5 bits of 8 bytes are used. For example, to make
|
132
132
|
# a custom character "H", you should transfer the following:
|
133
133
|
#
|
134
|
-
# * character[0] = 0b00010001 (decimal value 17)
|
135
|
-
# * character[1] = 0b00010001 (decimal value 17)
|
136
|
-
# * character[2] = 0b00010001 (decimal value 17)
|
137
|
-
# * character[3] = 0b00011111 (decimal value 31)
|
138
|
-
# * character[4] = 0b00010001 (decimal value 17)
|
139
|
-
# * character[5] = 0b00010001 (decimal value 17)
|
140
|
-
# * character[6] = 0b00010001 (decimal value 17)
|
141
|
-
# * character[7] = 0b00000000 (decimal value 0)
|
134
|
+
# * ``character[0] = 0b00010001`` (decimal value 17)
|
135
|
+
# * ``character[1] = 0b00010001`` (decimal value 17)
|
136
|
+
# * ``character[2] = 0b00010001`` (decimal value 17)
|
137
|
+
# * ``character[3] = 0b00011111`` (decimal value 31)
|
138
|
+
# * ``character[4] = 0b00010001`` (decimal value 17)
|
139
|
+
# * ``character[5] = 0b00010001`` (decimal value 17)
|
140
|
+
# * ``character[6] = 0b00010001`` (decimal value 17)
|
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
144
|
# characters with the byte representation 8 to 15.
|
145
145
|
#
|
146
146
|
# You can play around with the custom characters in Brick Viewer version
|
147
|
-
#
|
147
|
+
# since 2.0.1.
|
148
148
|
#
|
149
149
|
# Custom characters are stored by the LCD in RAM, so they have to be set
|
150
150
|
# after each startup.
|