Skip to content

Commit

Permalink
Update web_serial_I2C_ReadWrite.html
Browse files Browse the repository at this point in the history
  • Loading branch information
kesokeso621 authored Aug 28, 2024
1 parent e5c75da commit f1deb68
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions web_serial_I2C_ReadWrite.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
</head>
<body>
<h1><span>I2C Read/Writeテストツール </span></h1>
<button id="connect-button" type="button" disabled>接続</button>
<button id="connect-button" type="button" disabled>接続(Connect)</button>
<br/>
<br/>
<fieldset>
<legend>全般設定</legend>
<legend>全般設定(Settings)</legend>
<div>
<p>デバイスアドレス(Dev Addr)</p>  
<input type="text" id="devAddr" name="devAddr" placeholder="ex) 0x64 or 100"></p>
Expand Down Expand Up @@ -191,7 +191,7 @@ <h3><span>ブラウザはEdgeもしくはChromeのみ対応しています</span
//Clear Read Data
clearButton.addEventListener('click', (event) =>
{
document.getElementById("res_string").innerText = "読込値";
document.getElementById("res_string").innerText = "読込値(Read Value)";
});


Expand All @@ -201,7 +201,7 @@ <h3><span>ブラウザはEdgeもしくはChromeのみ対応しています</span
port = await navigator.serial.requestPort({});
await port.open({ baudRate: 9600 });

connectButton.innerText = '切断';
connectButton.innerText = '切断(Disconnect)';
writeButton.disabled = false;
readButton.disabled = false;

Expand Down Expand Up @@ -294,7 +294,7 @@ <h3><span>ブラウザはEdgeもしくはChromeのみ対応しています</span
if (port)
{
keepReading = false;
connectButton.innerText = '接続';
connectButton.innerText = '接続(Connect)';
readButton.disabled = true;
writeButton.disabled = true;
reader.cancel();
Expand Down

0 comments on commit f1deb68

Please sign in to comment.