# 雨量計

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FqZBbgvEpA8OSXw0Ci0R2%2Fraingauge_robotbit.png?alt=media&#x26;token=fce95664-146f-4d7b-b68a-9a308584c4fa" alt=""><figcaption></figcaption></figure>

### 模型搭建說明書

{% content-ref url="../building/yu-liang-ji-shuo-ming-shu" %}
[yu-liang-ji-shuo-ming-shu](https://sharinghub.kittenbot.hk/kits/smartweatherstation/building/yu-liang-ji-shuo-ming-shu)
{% endcontent-ref %}

### 模型接線圖

### Robotbit EDU接線圖

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2F35zdka7pEpqwDNvpinDV%2Fraingauge_wiring_robotbit.png?alt=media&#x26;token=a9e3bd8b-e5e4-48c9-84a5-fd41854cdb46" alt=""><figcaption></figcaption></figure>

### Robotbit 2.2接線圖

<figure><img src="https://879637118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F6uJvpXC43onNIIwhMlWo%2Fuploads%2FJtGklrFF2zm4ghRHe5qK%2Fraingauge_wiring_robotbit_2.2.png?alt=media&#x26;token=012b091e-0627-41dd-a3c3-06368ff4c69f" alt=""><figcaption></figcaption></figure>

### 參考程式

{% hint style="info" %}
請因應容器的大小修改s和h變數。
{% endhint %}

{% embed url="<https://makecode.microbit.org/_a3cfPTAEqfT7>" %}

#### 模型玩法:

1. OLED會一直顯示雨量和水位
