control-p5

How to write on other values placed after the operators case?

大憨熊 提交于 2021-01-20 08:40:57
问题 Good afternoon, I am using the switch construction, but I don’t know how to write correctly for other values after the case operators. In the DisplayData code, in the switch construction, I assign a command number to the fields, for example: Vin = cp5.addTextlabel, so that later, when connecting via a com port, display or change the data by sending this command "60",123 in the Vin = cp5.addTextlabel field. Only works in (minutess = cp5.addButton) - 10, (Vin = cp5.addTextlabel) - 60,

How to write on other values placed after the operators case?

不羁的心 提交于 2021-01-20 08:40:06
问题 Good afternoon, I am using the switch construction, but I don’t know how to write correctly for other values after the case operators. In the DisplayData code, in the switch construction, I assign a command number to the fields, for example: Vin = cp5.addTextlabel, so that later, when connecting via a com port, display or change the data by sending this command "60",123 in the Vin = cp5.addTextlabel field. Only works in (minutess = cp5.addButton) - 10, (Vin = cp5.addTextlabel) - 60,

How do I make the conditions of the data in the textbox two fields meet?

二次信任 提交于 2021-01-05 18:52:46
问题 Good afternoon, I was already prompted how this can be done with cp5.addNumberbox, but I tried different options and still could not beat cp5.addTextfield. Nothing works! The tasks were as follows: 1). The minValue field must not exceed the MaxValue field when entering numbers. 2). The MaxValue field must not be less than the minValue field when entering numbers. 3). The minValue field must not exceed the range from the maxValue field by 500 units. I post the simplest version of the code

How do I make the conditions of the data in the textbox two fields meet?

落花浮王杯 提交于 2021-01-05 18:49:29
问题 Good afternoon, I was already prompted how this can be done with cp5.addNumberbox, but I tried different options and still could not beat cp5.addTextfield. Nothing works! The tasks were as follows: 1). The minValue field must not exceed the MaxValue field when entering numbers. 2). The MaxValue field must not be less than the minValue field when entering numbers. 3). The minValue field must not exceed the range from the maxValue field by 500 units. I post the simplest version of the code