// 撰寫一程式每秒讀入RTC的值,並輸出到Serial
// 輸出格式為: YYYY-MM-DD HH:MM:SS
// ##注意事項
// - 開發版(Blue Pill)及DS1307相關規格資料請直接參閱晶片官方資料或wokwi help
// (在右側simulation中滑鼠點擊chip圖像會出現問號,即為help)
// - **不建議** diagram.json直接作為提示詞
// - 須自行實做I2C及device driver, 不能用任何現成library
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, STM32!");
}
void loop() {
// put your main code here, to run repeatedly:
Serial.println("loop() Called.");
delay(1000); // this speeds up the simulation
}