update
This commit is contained in:
parent
10997ab7c5
commit
01d1175117
@ -34,16 +34,19 @@
|
||||
}
|
||||
|
||||
button {
|
||||
width: 94px;
|
||||
/* width: 94px; */
|
||||
margin-top: 1rem;
|
||||
flex: 1 1 auto;
|
||||
width: 70px;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="matrix">
|
||||
<h1>Sense HAT 交互界面</h1>
|
||||
<div style="width:300px; display:flex; flex-direction: column; align-items: center;">
|
||||
<div id="matrix">
|
||||
<div class="row">
|
||||
<div class="led" data-y="0" data-x="0" onclick="setPixel(this)"></div>
|
||||
<div class="led" data-y="0" data-x="1" onclick="setPixel(this)"></div>
|
||||
@ -125,12 +128,9 @@
|
||||
<div class="led" data-y="7" data-x="7" onclick="setPixel(this)"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<p>
|
||||
<p style="display:flex;gap:4px;">
|
||||
<button onclick="client.emit('action', {action:'clear'})">清除</button>
|
||||
<button onclick="client.emit('action', {action:'flash'})">闪光</button>
|
||||
</p>
|
||||
<p>
|
||||
<button onclick="client.emit('action', {action:'flipH'})">左右反转</button>
|
||||
<button onclick="client.emit('action', {action:'flipV'})">上下反转</button>
|
||||
</p>
|
||||
@ -149,8 +149,7 @@
|
||||
<p>绿 <input type="range" name="green" id="green" min="0" , max="255" step="1" value="50"></p>
|
||||
<p>蓝 <input type="range" name="blue" id="blue" min="0" , max="255" step="1" value="255"></p>
|
||||
</div>
|
||||
<div id="selected_color"
|
||||
style="width:100px;border:1px solid black;margin:1rem;background-color: rgb(50,50,255);"></div>
|
||||
<div id="selected_color" style="width:100px;height:100px;border:1px solid black;margin:auto 1rem;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user