2025/07/20

[Raspberry] Misc

/boot/firmware/config.txt 是 Raspberry Pi 系統中用來設定硬體行為的設定檔,主要在啟動階段由 GPU bootloader 讀取。這個檔案允許你設定像是顯示輸出、音訊介面、I2C/I2S/SPI 啟用、裝置樹載入與參數等。

⚠️ 注意:/boot/firmware/config.txt 是 Raspberry Pi OS 使用 UEFI 或 Ubuntu 系統的名稱,傳統 Raspberry Pi OS 使用的是 /boot/config.txt

 

aplay -D hw:0,0 -r 16000 -f S16_LE -c 2 test.wav
 
arecord -D plughw:3,0 -d 5 -f S16_LE -r 16000 -c 2 test.wav 
-d 5 :錄音時長 5 秒
-f S16_LE :格式為 16-bit 小端(Little Endian)
-r 16000 :取樣率 16000 Hz
-c 2 :雙聲道
 
 
dtc -I fs /proc/device-tree | less
 

沒有留言: