---
# System prepended metadata

title: 高二自主 0430
tags: [作業]

---

---
title: 高二自主 0430
tags: 作業
---

> [webduino](https://webduino.io/)

> [學習手冊](https://www.notion.so/smshprogram/Webduino-4751722d0d274b2e965ae2ba341f7cd1)

> [codepen](https://codepen.io/trending)

## 禁止修改區

### 初階組任務
> [初階組參考](https://tutorials.webduino.io/zh-tw/docs/basic/component/shake-button.html)

:::info
計算震動次數，並顯示出來
:::

### 進階組任務
> [進階組參考](https://codertw.com/%E5%89%8D%E7%AB%AF%E9%96%8B%E7%99%BC/279022/)

:::warning
如果傾斜時，更換照片
:::

```htmlembedded
<div>
  <span id="text-show">123</span>
</div>
```
```javascript
#text-show {
  font-size: 120px;
  pointer-events: auto !important;
}
```
```javascript
var shake;

boardReady({device: '你的id'}, function (board) {
  board.samplingInterval = 250;
  shake = getShock(board, 8);
  shake.on('high', function () {
    document.getElementById('text-show').innerHTML = '通電';
  });
  shake.on('low', function () {
    document.getElementById('text-show').innerHTML = '斷電';
  });
});

```

## 進階組
### 楊苡若
![](https://i.imgur.com/EUGUF0R.png)
### 王政翔
![](https://i.imgur.com/Bt9GLwy.png)

### 郭亮霆
![](https://i.imgur.com/BVmNjeW.png)


### 張宸瑋
![](https://i.imgur.com/bTpbIof.png)


 

## 初階組

### 洪羽薇
![](https://i.imgur.com/IC1g2rg.png)

### 
### 蔡松霖
![](https://i.imgur.com/hfsesDi.png)

### 陳聖翔
![](Uploading file..._ughb7u8a1)

### 陳家驎
![](https://i.imgur.com/7elaTlB.png)


### 陳勁嘉
### 杜嘉耕
![](https://i.imgur.com/l4UiMew.png)

### 蕭方誌
![](https://i.imgur.com/0n5TSAt.png)


### 余靜玟
### 陳亭宇
### 洪定緯
![](https://i.imgur.com/sIdYWrr.png)

