Initial sanitized SmartSpeaker snapshot

This commit is contained in:
ben
2026-07-13 21:13:19 -07:00
commit ac26dcc238
66 changed files with 11438 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
$port = New-Object System.IO.Ports.SerialPort COM5, 115200, None, 8, 1
$port.ReadTimeout = 1000
try {
$port.Open()
Write-Host "Reading serial port COM5..." -ForegroundColor Cyan
$startTime = Get-Date
while (((Get-Date) - $startTime).TotalSeconds -lt 15) {
try {
$line = $port.ReadLine()
Write-Output $line
} catch [TimeoutException] {
# normal timeout
}
}
} catch {
Write-Error $_
} finally {
if ($port -ne $null -and $port.IsOpen) {
$port.Close()
}
}