如果還沒有燒錄器...
ARDUINO IDE 設定
1. 檔案->偏好設定->開啟額外的開發板管理員網址
添加:http://drazzy.com/package_drazzy.com_index.json
ATtiny x12/x14 pinout for ARDUINO
麵包板接線 (ATtiny212)
接線:
Pin1 -- 5V
Pin6 -- UPDI
Pin8 -- GND
Pin4 -- (-LED+) -- 1K -- 5V
程式碼
void setup() {
pinMode(2, OUTPUT);
}
void loop() {
digitalWrite(2, HIGH);
delay(1000);
digitalWrite(2, LOW);
delay(1000);
}
執行結果
參考資料
沒有留言:
張貼留言