### ghi nho (筆記 arduino)
## 2024/09/20
## 準備環境
1.練習使用 hackmd.io 作筆記
https://hackmd.io/
螢幕可以下來,使用 【ctrl】+[windows]+S 螢幕
2.筆記

3.上課網址:dic.vbird.tw

4.使用 python
https://colab.research.google.com/?hl=zh-tw


4.算BMI


# 2024/09/27
## 1.

## 2.

## 3.

## 4.

## 5.使用 if
```
if a== b:
print(true)
else:
print(false)
```

可以这样
```
# 4.2.1
myday = 'friday'
if myday == 'monday':
print('I am blue..')
else:
print('working hard today')
```
## 常使用的運算子則有
X == Y
X != Y
X < Y
X <= Y
X > Y
X >= Y
## 7.在 python
```
import datetime
mydate = (datetime.datetime.now() )
print( mydate )
```


## 8.使用 if ... elif ... else 進行多重條件判斷
例如:
一個禮拜7天。不同日不同偷出資訊
希望執行程式會出現
*星期1-4 要上班
*星期5要上課
*星期6,7 可以休息
```
# 4.2.3
import datetime
myday = datetime.datetime.now()
wday = int(myday.strftime("%w"))
if wday >=1 and wday <=4:
print ("要上班")
elif wday == 5:
print ("須上課")
elif wday == 6 or wday == 0:
print("hehe")
```

## 9. 使用 for 迴圈搭配數值 range() 與字串陣列
```
# 4.3.1 testing for range
for wday in range(7):
if wday >=1 and wday <=4:
print (wday, "工作")
elif wday == 5:
print (wday, "讀書")
elif wday == 6 or wday == 0 :
print(wday, "休息")
```

# 2024/10/04
## 1.了解 indent 的錯誤


## 2.雙重迴圈 vòng lặp đôi

```
# 4.3.1 using for (說明,不會被執行)
# 第一次使用 for
print ("hello python")
for x in range(1,10):
print(x)
for y in range(1,10):
print('\t',y)
```
## 3. 9x9 乘法表 Vòng lặp lồng nhau cho bảng cửu chương
```
# 4.3.1 using for (說明,不會被執行)
# show 9x9=81
print (" 9x9 = 81")
for x in range(2,10):
print ('xxxxxxxxxxxxxxxxxxxxxx')
for j in range(2,10):
print( str(x) + ' x ' + str(j) + " = " + str(x*j) )
```

## 4.Chuỗi sử dụng phương thức lặp của mảng

```
# 4.3.3 array
soup = [ "牛蒡雞湯", "玉米蛋花湯", "芹菜餛飩湯", "薑絲海苗湯", "綠豆薏仁湯" ]
print (soup)
for x in range(len(5)):
print (x, ':'soup[x])
```
## 5.使用亂數,讓程式自己找出要的數字 Sử dụng các số ngẫu nhiên và để chương trình tự tìm số mong muốn

## 6. BMI

# 2024/10/11
## 1.使用 while 迴圈搭配 Sử dụng vòng lặp while với hàm break và continue
列出星期1 到星期 7,列出 i need working


# 2.break 與 continue 功能

# 3。作業


### 2024/10/18 Arduino
## 1.

# a.

# b.

# c.

# d.

# e.

# f.coppy

## 2024/10/25
# 1.每次上課都要檢查的項目
1.打开电脑
2.cam arduino vao usb
3.mo cai dat xem co ch340/ch341

4.arduino IDE
5.kiem tra

## 2.Tim loi sai

tinh kiwi

## 2024/11/1
# 1.Serial.readString()

# 2024/12/06
1.
