mbed_robotcar / Mbed 2 deprecated funcSend_mes

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
nishimura_taku_pet
Date:
Tue Aug 04 07:48:30 2020 +0000
Commit message:
commit

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 503e64d287da main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue Aug 04 07:48:30 2020 +0000
@@ -0,0 +1,12 @@
+function send_mes(btnmes,btnval){
+var url = "http://" + window.location.hostname + "/cargo?a=" + btnval;
+htmlacs(url);
+console.log(url);
+var buttons = document.getElementsByTagName("button");
+for(var i=0;i<7;i++){
+    if(buttons[i].value == btval){
+        buttons[i].className="light";
+    }else{
+        buttons[i].className="noselect";
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 503e64d287da mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Aug 04 07:48:30 2020 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file