docs : edit README
This commit is contained in:
@@ -231,24 +231,13 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 측정 속도 조절 -->
|
||||
<div style="margin-top: 20px;">
|
||||
<h3 style="margin-bottom: 10px; color: #666;">측정 속도 조절</h3>
|
||||
<div style="display: flex; align-items: center; gap: 10px;">
|
||||
<button class="btn btn-primary" onclick="sendCommand('-')" style="flex: 1; font-size: 1.5em;">-</button>
|
||||
<div style="flex: 2; text-align: center; font-size: 0.9em; color: #666;">
|
||||
느리게 / 빠르게
|
||||
</div>
|
||||
<button class="btn btn-primary" onclick="sendCommand('+')" style="flex: 1; font-size: 1.5em;">+</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Controls -->
|
||||
<div class="controls">
|
||||
<button class="btn btn-primary" onclick="sendCommand('c')">영점 조절</button>
|
||||
<button class="btn btn-secondary" onclick="sendCommand('p')">일시정지</button>
|
||||
<button class="btn btn-success" onclick="sendCommand('r')">재시작</button>
|
||||
<button class="btn btn-danger" onclick="clearChart()">그래프 초기화</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -300,8 +289,6 @@
|
||||
},
|
||||
y: {
|
||||
beginAtZero: true,
|
||||
min: 0,
|
||||
max: 5000, // 최대값 5kg(5000g)로 고정
|
||||
title: {
|
||||
display: true,
|
||||
text: '무게 (g)'
|
||||
@@ -433,6 +420,9 @@
|
||||
document.getElementById('maxWeight').textContent = '0.0';
|
||||
document.getElementById('avgWeight').textContent = '0.0';
|
||||
|
||||
// Arduino 측정 시간 초기화
|
||||
sendCommand('t');
|
||||
|
||||
addLog('그래프 및 통계가 초기화되었습니다.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user