initial commit

This commit is contained in:
2025-03-21 09:59:09 +01:00
parent 59637f4fa8
commit f690d03c57
355 changed files with 297020 additions and 0 deletions
@@ -0,0 +1,39 @@
# Set-Location ..
$currentDir = Get-Location
Write-Host "Current path : $currentDir !"
$examples = Get-ChildItem -Path "examples" -Directory -Name
$envs = @(
"esp32s3",
"esp32c3",
"esp32dev",
"rp2040",
"nrf52840"
)
platformio run -t clean
foreach ($env in $envs) {
foreach ($example in $examples) {
$skipFile = "examples/$example/.skip.$env"
if (Test-Path $skipFile) {
Write-Host "Skip $example for $env"
continue
}
$env:PLATFORMIO_SRC_DIR = "examples/$example"
Write-Host "PLATFORMIO_SRC_DIR=$env:PLATFORMIO_SRC_DIR , ENV: $env"
platformio run -e $env
if ($LASTEXITCODE -ne 0) {
Write-Host "Build env: $env $env:PLATFORMIO_SRC_DIR Failed!"
exit 1
} else {
Write-Host "Build env: $env $env:PLATFORMIO_SRC_DIR Successed!"
}
}
}
@@ -0,0 +1,47 @@
cd ../../
pwd
examples=($(find examples/* -maxdepth 1 -type d -printf "%f\n"))
envs=(
"esp32s3"
"esp32c3"
"esp32dev"
"rp2040"
"nrf52840"
)
pio run -t clean
for env in ${envs[@]}
do
for value in ${examples[@]}
do
if [ -f "$value/.skip."$env ];then
echo "Skip" $value
continue
fi
export PLATFORMIO_SRC_DIR="examples/$value"
echo "PLATFORMIO_SRC_DIR=$PLATFORMIO_SRC_DIR , ENV: $env"
pio run -e $env
if [ $? -ne 0 ]; then
echo "Build env: $env $PLATFORMIO_SRC_DIR Failed!"
exit -1
else
echo "Build env: $env $PLATFORMIO_SRC_DIR Successed!"
fi
done
done