diff --git a/lib/libesp32/berry_tasmota/src/be_lv_haspmota.c b/lib/libesp32/berry_tasmota/src/be_lv_haspmota.c index 3e91645432a2..6969cc6cd4e9 100644 --- a/lib/libesp32/berry_tasmota/src/be_lv_haspmota.c +++ b/lib/libesp32/berry_tasmota/src/be_lv_haspmota.c @@ -6950,6 +6950,33 @@ void be_load_lvh_qrcode_class(bvm *vm) { extern const bclass be_class_lvh_chart; +/******************************************************************** +** Solidified function: get_y_min +********************************************************************/ +be_local_closure(lvh_chart_get_y_min, /* name */ + be_nested_proto( + 2, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(_y_min), + }), + be_str_weak(get_y_min), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: add_point ********************************************************************/ @@ -6966,7 +6993,7 @@ be_local_closure(lvh_chart_add_point, /* name */ ( &(const bvalue[ 3]) { /* constants */ /* K0 */ be_nested_str_weak(_lv_obj), /* K1 */ be_nested_str_weak(set_next_value), - /* K2 */ be_nested_str_weak(ser1), + /* K2 */ be_nested_str_weak(_ser1), }), be_str_weak(add_point), &be_const_str_solidified, @@ -6984,72 +7011,28 @@ be_local_closure(lvh_chart_add_point, /* name */ /******************************************************************** -** Solidified function: post_init +** Solidified function: set_val2 ********************************************************************/ -be_local_closure(lvh_chart_post_init, /* name */ +be_local_closure(lvh_chart_set_val2, /* name */ be_nested_proto( - 6, /* nstack */ - 1, /* argc */ + 5, /* nstack */ + 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[17]) { /* constants */ - /* K0 */ be_nested_str_weak(y_min), - /* K1 */ be_const_int(0), - /* K2 */ be_nested_str_weak(y_max), - /* K3 */ be_nested_str_weak(h_div), - /* K4 */ be_const_int(3), - /* K5 */ be_nested_str_weak(v_div), - /* K6 */ be_nested_str_weak(_lv_obj), - /* K7 */ be_nested_str_weak(set_update_mode), - /* K8 */ be_nested_str_weak(lv), - /* K9 */ be_nested_str_weak(CHART_UPDATE_MODE_SHIFT), - /* K10 */ be_nested_str_weak(ser1), - /* K11 */ be_nested_str_weak(add_series), - /* K12 */ be_nested_str_weak(color), - /* K13 */ be_const_int(15615044), - /* K14 */ be_nested_str_weak(CHART_AXIS_PRIMARY_Y), - /* K15 */ be_nested_str_weak(ser2), - /* K16 */ be_const_int(4517444), + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(add_point2), }), - be_str_weak(post_init), + be_str_weak(set_val2), &be_const_str_solidified, - ( &(const binstruction[32]) { /* code */ - 0x90020101, // 0000 SETMBR R0 K0 K1 - 0x54060063, // 0001 LDINT R1 100 - 0x90020401, // 0002 SETMBR R0 K2 R1 - 0x90020704, // 0003 SETMBR R0 K3 K4 - 0x54060004, // 0004 LDINT R1 5 - 0x90020A01, // 0005 SETMBR R0 K5 R1 - 0x88040106, // 0006 GETMBR R1 R0 K6 - 0x8C040307, // 0007 GETMET R1 R1 K7 - 0xB80E1000, // 0008 GETNGBL R3 K8 - 0x880C0709, // 0009 GETMBR R3 R3 K9 - 0x7C040400, // 000A CALL R1 2 - 0x88040106, // 000B GETMBR R1 R0 K6 - 0x8C04030B, // 000C GETMET R1 R1 K11 - 0xB80E1000, // 000D GETNGBL R3 K8 - 0x8C0C070C, // 000E GETMET R3 R3 K12 - 0x5814000D, // 000F LDCONST R5 K13 - 0x7C0C0400, // 0010 CALL R3 2 - 0xB8121000, // 0011 GETNGBL R4 K8 - 0x8810090E, // 0012 GETMBR R4 R4 K14 - 0x7C040600, // 0013 CALL R1 3 - 0x90021401, // 0014 SETMBR R0 K10 R1 - 0x88040106, // 0015 GETMBR R1 R0 K6 - 0x8C04030B, // 0016 GETMET R1 R1 K11 - 0xB80E1000, // 0017 GETNGBL R3 K8 - 0x8C0C070C, // 0018 GETMET R3 R3 K12 - 0x58140010, // 0019 LDCONST R5 K16 - 0x7C0C0400, // 001A CALL R3 2 - 0xB8121000, // 001B GETNGBL R4 K8 - 0x8810090E, // 001C GETMBR R4 R4 K14 - 0x7C040600, // 001D CALL R1 3 - 0x90021E01, // 001E SETMBR R0 K15 R1 - 0x80000000, // 001F RET 0 + ( &(const binstruction[ 4]) { /* code */ + 0x8C080100, // 0000 GETMET R2 R0 K0 + 0x5C100200, // 0001 MOVE R4 R1 + 0x7C080400, // 0002 CALL R2 2 + 0x80000000, // 0003 RET 0 }) ) ); @@ -7070,12 +7053,12 @@ be_local_closure(lvh_chart_set_y_min, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(y_min), + /* K0 */ be_nested_str_weak(_y_min), /* K1 */ be_nested_str_weak(_lv_obj), /* K2 */ be_nested_str_weak(set_range), /* K3 */ be_nested_str_weak(lv), /* K4 */ be_nested_str_weak(CHART_AXIS_PRIMARY_Y), - /* K5 */ be_nested_str_weak(y_max), + /* K5 */ be_nested_str_weak(_y_max), }), be_str_weak(set_y_min), &be_const_str_solidified, @@ -7095,6 +7078,39 @@ be_local_closure(lvh_chart_set_y_min, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: add_point2 +********************************************************************/ +be_local_closure(lvh_chart_add_point2, /* name */ + be_nested_proto( + 6, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(_lv_obj), + /* K1 */ be_nested_str_weak(set_next_value), + /* K2 */ be_nested_str_weak(_ser2), + }), + be_str_weak(add_point2), + &be_const_str_solidified, + ( &(const binstruction[ 6]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x88100102, // 0002 GETMBR R4 R0 K2 + 0x5C140200, // 0003 MOVE R5 R1 + 0x7C080600, // 0004 CALL R2 3 + 0x80000000, // 0005 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: set_series1_color ********************************************************************/ @@ -7111,7 +7127,7 @@ be_local_closure(lvh_chart_set_series1_color, /* name */ ( &(const bvalue[ 3]) { /* constants */ /* K0 */ be_nested_str_weak(_lv_obj), /* K1 */ be_nested_str_weak(set_series_color), - /* K2 */ be_nested_str_weak(ser1), + /* K2 */ be_nested_str_weak(_ser1), }), be_str_weak(set_series1_color), &be_const_str_solidified, @@ -7144,7 +7160,7 @@ be_local_closure(lvh_chart_set_series2_color, /* name */ ( &(const bvalue[ 3]) { /* constants */ /* K0 */ be_nested_str_weak(_lv_obj), /* K1 */ be_nested_str_weak(set_series_color), - /* K2 */ be_nested_str_weak(ser2), + /* K2 */ be_nested_str_weak(_ser2), }), be_str_weak(set_series2_color), &be_const_str_solidified, @@ -7175,12 +7191,12 @@ be_local_closure(lvh_chart_set_y_max, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(y_max), + /* K0 */ be_nested_str_weak(_y_max), /* K1 */ be_nested_str_weak(_lv_obj), /* K2 */ be_nested_str_weak(set_range), /* K3 */ be_nested_str_weak(lv), /* K4 */ be_nested_str_weak(CHART_AXIS_PRIMARY_Y), - /* K5 */ be_nested_str_weak(y_min), + /* K5 */ be_nested_str_weak(_y_min), }), be_str_weak(set_y_max), &be_const_str_solidified, @@ -7201,32 +7217,72 @@ be_local_closure(lvh_chart_set_y_max, /* name */ /******************************************************************** -** Solidified function: add_point2 +** Solidified function: post_init ********************************************************************/ -be_local_closure(lvh_chart_add_point2, /* name */ +be_local_closure(lvh_chart_post_init, /* name */ be_nested_proto( 6, /* nstack */ - 2, /* argc */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(_lv_obj), - /* K1 */ be_nested_str_weak(set_next_value), - /* K2 */ be_nested_str_weak(ser2), + ( &(const bvalue[17]) { /* constants */ + /* K0 */ be_nested_str_weak(_y_min), + /* K1 */ be_const_int(0), + /* K2 */ be_nested_str_weak(_y_max), + /* K3 */ be_nested_str_weak(_h_div), + /* K4 */ be_const_int(3), + /* K5 */ be_nested_str_weak(_v_div), + /* K6 */ be_nested_str_weak(_lv_obj), + /* K7 */ be_nested_str_weak(set_update_mode), + /* K8 */ be_nested_str_weak(lv), + /* K9 */ be_nested_str_weak(CHART_UPDATE_MODE_SHIFT), + /* K10 */ be_nested_str_weak(_ser1), + /* K11 */ be_nested_str_weak(add_series), + /* K12 */ be_nested_str_weak(color), + /* K13 */ be_const_int(15615044), + /* K14 */ be_nested_str_weak(CHART_AXIS_PRIMARY_Y), + /* K15 */ be_nested_str_weak(_ser2), + /* K16 */ be_const_int(4517444), }), - be_str_weak(add_point2), + be_str_weak(post_init), &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x88100102, // 0002 GETMBR R4 R0 K2 - 0x5C140200, // 0003 MOVE R5 R1 - 0x7C080600, // 0004 CALL R2 3 - 0x80000000, // 0005 RET 0 + ( &(const binstruction[32]) { /* code */ + 0x90020101, // 0000 SETMBR R0 K0 K1 + 0x54060063, // 0001 LDINT R1 100 + 0x90020401, // 0002 SETMBR R0 K2 R1 + 0x90020704, // 0003 SETMBR R0 K3 K4 + 0x54060004, // 0004 LDINT R1 5 + 0x90020A01, // 0005 SETMBR R0 K5 R1 + 0x88040106, // 0006 GETMBR R1 R0 K6 + 0x8C040307, // 0007 GETMET R1 R1 K7 + 0xB80E1000, // 0008 GETNGBL R3 K8 + 0x880C0709, // 0009 GETMBR R3 R3 K9 + 0x7C040400, // 000A CALL R1 2 + 0x88040106, // 000B GETMBR R1 R0 K6 + 0x8C04030B, // 000C GETMET R1 R1 K11 + 0xB80E1000, // 000D GETNGBL R3 K8 + 0x8C0C070C, // 000E GETMET R3 R3 K12 + 0x5814000D, // 000F LDCONST R5 K13 + 0x7C0C0400, // 0010 CALL R3 2 + 0xB8121000, // 0011 GETNGBL R4 K8 + 0x8810090E, // 0012 GETMBR R4 R4 K14 + 0x7C040600, // 0013 CALL R1 3 + 0x90021401, // 0014 SETMBR R0 K10 R1 + 0x88040106, // 0015 GETMBR R1 R0 K6 + 0x8C04030B, // 0016 GETMET R1 R1 K11 + 0xB80E1000, // 0017 GETNGBL R3 K8 + 0x8C0C070C, // 0018 GETMET R3 R3 K12 + 0x58140010, // 0019 LDCONST R5 K16 + 0x7C0C0400, // 001A CALL R3 2 + 0xB8121000, // 001B GETNGBL R4 K8 + 0x8810090E, // 001C GETMBR R4 R4 K14 + 0x7C040600, // 001D CALL R1 3 + 0x90021E01, // 001E SETMBR R0 K15 R1 + 0x80000000, // 001F RET 0 }) ) ); @@ -7247,7 +7303,7 @@ be_local_closure(lvh_chart_get_y_max, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(y_max), + /* K0 */ be_nested_str_weak(_y_max), }), be_str_weak(get_y_max), &be_const_str_solidified, @@ -7289,35 +7345,6 @@ be_local_closure(lvh_chart_set_val, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: set_val2 -********************************************************************/ -be_local_closure(lvh_chart_set_val2, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(add_point2), - }), - be_str_weak(set_val2), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x8C080100, // 0000 GETMET R2 R0 K0 - 0x5C100200, // 0001 MOVE R4 R1 - 0x7C080400, // 0002 CALL R2 2 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: set_v_div_line_count ********************************************************************/ @@ -7332,10 +7359,10 @@ be_local_closure(lvh_chart_set_v_div_line_count, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(v_div), + /* K0 */ be_nested_str_weak(_v_div), /* K1 */ be_nested_str_weak(_lv_obj), /* K2 */ be_nested_str_weak(set_div_line_count), - /* K3 */ be_nested_str_weak(h_div), + /* K3 */ be_nested_str_weak(_h_div), }), be_str_weak(set_v_div_line_count), &be_const_str_solidified, @@ -7353,33 +7380,6 @@ be_local_closure(lvh_chart_set_v_div_line_count, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: get_y_min -********************************************************************/ -be_local_closure(lvh_chart_get_y_min, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(y_min), - }), - be_str_weak(get_y_min), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: set_h_div_line_count ********************************************************************/ @@ -7394,10 +7394,10 @@ be_local_closure(lvh_chart_set_h_div_line_count, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(h_div), + /* K0 */ be_nested_str_weak(_h_div), /* K1 */ be_nested_str_weak(_lv_obj), /* K2 */ be_nested_str_weak(set_div_line_count), - /* K3 */ be_nested_str_weak(v_div), + /* K3 */ be_nested_str_weak(_v_div), }), be_str_weak(set_h_div_line_count), &be_const_str_solidified, @@ -7424,25 +7424,25 @@ be_local_class(lvh_chart, &be_class_lvh_obj, be_nested_map(20, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(y_max, -1), be_const_var(3) }, - { be_const_key_weak(get_y_min, 18), be_const_closure(lvh_chart_get_y_min_closure) }, - { be_const_key_weak(set_v_div_line_count, 0), be_const_closure(lvh_chart_set_v_div_line_count_closure) }, - { be_const_key_weak(h_div, 6), be_const_var(4) }, - { be_const_key_weak(set_y_min, -1), be_const_closure(lvh_chart_set_y_min_closure) }, - { be_const_key_weak(ser2, 12), be_const_var(1) }, + { be_const_key_weak(get_y_min, -1), be_const_closure(lvh_chart_get_y_min_closure) }, + { be_const_key_weak(_h_div, 16), be_const_var(4) }, + { be_const_key_weak(set_v_div_line_count, -1), be_const_closure(lvh_chart_set_v_div_line_count_closure) }, { be_const_key_weak(set_val2, -1), be_const_closure(lvh_chart_set_val2_closure) }, - { be_const_key_weak(_lv_class, -1), be_const_class(be_class_lv_chart) }, - { be_const_key_weak(ser1, 1), be_const_var(0) }, - { be_const_key_weak(set_series2_color, -1), be_const_closure(lvh_chart_set_series2_color_closure) }, - { be_const_key_weak(post_init, 16), be_const_closure(lvh_chart_post_init_closure) }, - { be_const_key_weak(set_val, -1), be_const_closure(lvh_chart_set_val_closure) }, + { be_const_key_weak(set_y_min, -1), be_const_closure(lvh_chart_set_y_min_closure) }, { be_const_key_weak(add_point2, -1), be_const_closure(lvh_chart_add_point2_closure) }, - { be_const_key_weak(v_div, -1), be_const_var(5) }, + { be_const_key_weak(_ser2, -1), be_const_var(1) }, + { be_const_key_weak(_ser1, 11), be_const_var(0) }, + { be_const_key_weak(_v_div, 18), be_const_var(5) }, + { be_const_key_weak(set_series2_color, -1), be_const_closure(lvh_chart_set_series2_color_closure) }, + { be_const_key_weak(set_y_max, 1), be_const_closure(lvh_chart_set_y_max_closure) }, + { be_const_key_weak(_lv_class, -1), be_const_class(be_class_lv_chart) }, + { be_const_key_weak(_y_max, -1), be_const_var(3) }, { be_const_key_weak(get_y_max, -1), be_const_closure(lvh_chart_get_y_max_closure) }, - { be_const_key_weak(y_min, 11), be_const_var(2) }, - { be_const_key_weak(set_y_max, -1), be_const_closure(lvh_chart_set_y_max_closure) }, + { be_const_key_weak(_y_min, 13), be_const_var(2) }, + { be_const_key_weak(set_val, -1), be_const_closure(lvh_chart_set_val_closure) }, + { be_const_key_weak(post_init, -1), be_const_closure(lvh_chart_post_init_closure) }, { be_const_key_weak(add_point, 2), be_const_closure(lvh_chart_add_point_closure) }, - { be_const_key_weak(set_series1_color, -1), be_const_closure(lvh_chart_set_series1_color_closure) }, + { be_const_key_weak(set_series1_color, 0), be_const_closure(lvh_chart_set_series1_color_closure) }, { be_const_key_weak(set_h_div_line_count, -1), be_const_closure(lvh_chart_set_h_div_line_count_closure) }, })), be_str_weak(lvh_chart) diff --git a/tasmota/berry/haspmota_src/haspmota_core/haspmota.be b/tasmota/berry/haspmota_src/haspmota_core/haspmota.be index 7a3512041b8d..6464d623a690 100644 --- a/tasmota/berry/haspmota_src/haspmota_core/haspmota.be +++ b/tasmota/berry/haspmota_src/haspmota_core/haspmota.be @@ -1548,33 +1548,33 @@ end class lvh_chart : lvh_obj static _lv_class = lv.chart # ser1/ser2 contains the first/second series of data - var ser1, ser2 + var _ser1, _ser2 # y_min/y_max contain the main range for y. Since LVGL does not have getters, we need to memorize on our side the lates tvalues - var y_min, y_max + var _y_min, _y_max # h_div/v_div contain the horizontal and vertical divisions, we need to memorize values because both are set from same API - var h_div, v_div + var _h_div, _v_div def post_init() # default values from LVGL are 0..100 - self.y_min = 0 - self.y_max = 100 + self._y_min = 0 + self._y_max = 100 # default values #define LV_CHART_HDIV_DEF 3 #define LV_CHART_VDIV_DEF 5 - self.h_div = 3 - self.v_div = 5 + self._h_div = 3 + self._v_div = 5 self._lv_obj.set_update_mode(lv.CHART_UPDATE_MODE_SHIFT) - self.ser1 = self._lv_obj.add_series(lv.color(0xEE4444), lv.CHART_AXIS_PRIMARY_Y) - self.ser2 = self._lv_obj.add_series(lv.color(0x44EE44), lv.CHART_AXIS_PRIMARY_Y) + self._ser1 = self._lv_obj.add_series(lv.color(0xEE4444), lv.CHART_AXIS_PRIMARY_Y) + self._ser2 = self._lv_obj.add_series(lv.color(0x44EE44), lv.CHART_AXIS_PRIMARY_Y) end def add_point(v) - self._lv_obj.set_next_value(self.ser1, v) + self._lv_obj.set_next_value(self._ser1, v) end def add_point2(v) - self._lv_obj.set_next_value(self.ser2, v) + self._lv_obj.set_next_value(self._ser2, v) end def set_val(v) @@ -1584,33 +1584,33 @@ class lvh_chart : lvh_obj self.add_point2(v) end def get_y_min() - return self.y_min + return self._y_min end def get_y_max() - return self.y_max + return self._y_max end - def set_y_min(y_min) - self.y_min = y_min - self._lv_obj.set_range(lv.CHART_AXIS_PRIMARY_Y, self.y_min, self.y_max) + def set_y_min(_y_min) + self._y_min = _y_min + self._lv_obj.set_range(lv.CHART_AXIS_PRIMARY_Y, self._y_min, self._y_max) end - def set_y_max(y_max) - self.y_max = y_max - self._lv_obj.set_range(lv.CHART_AXIS_PRIMARY_Y, self.y_min, self.y_max) + def set_y_max(_y_max) + self._y_max = _y_max + self._lv_obj.set_range(lv.CHART_AXIS_PRIMARY_Y, self._y_min, self._y_max) end def set_series1_color(color) - self._lv_obj.set_series_color(self.ser1, color) + self._lv_obj.set_series_color(self._ser1, color) end def set_series2_color(color) - self._lv_obj.set_series_color(self.ser2, color) + self._lv_obj.set_series_color(self._ser2, color) end - def set_h_div_line_count(h_div) - self.h_div = h_div - self._lv_obj.set_div_line_count(self.h_div, self.v_div) + def set_h_div_line_count(_h_div) + self._h_div = _h_div + self._lv_obj.set_div_line_count(self._h_div, self._v_div) end - def set_v_div_line_count(v_div) - self.v_div = v_div - self._lv_obj.set_div_line_count(self.h_div, self.v_div) + def set_v_div_line_count(_v_div) + self._v_div = _v_div + self._lv_obj.set_div_line_count(self._h_div, self._v_div) end end