Updated the code.
This commit is contained in:
parent
d23753eba0
commit
e22dca9ed8
51 changed files with 25720 additions and 44699 deletions
Binary file not shown.
|
@ -63,13 +63,11 @@ public class homepage extends AppCompatActivity {
|
|||
public void onClick(View v) {
|
||||
if(check == 0){
|
||||
sig.setPower("on");
|
||||
sig.setMotor("on");
|
||||
e.setImageResource(R.drawable.ic_power_on);
|
||||
et.setText("ON");
|
||||
check = 1;
|
||||
} else {
|
||||
sig.setPower("off");
|
||||
sig.setMotor("off");
|
||||
e.setImageResource(R.drawable.ic_power_off);
|
||||
et.setText("OFF");
|
||||
check = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue