try
{
Add-Type -Path "$(Resolve-Path .)/bmp180-netcore.dll"
$bmp180 = [bmp180_netcore.BMP180]::new()
"$($bmp180.ReadTemperature() / 10)°C"
"$($bmp180.ReadPressure()) bar"
"$($bmp180.ReadAltitude().ToString("#.000")) mts"
"$($bmp180.ReadSeaAltitude()) pa"
}
catch
{
Write-OutPut $_.Exception.Message
}
-
Notifications
You must be signed in to change notification settings - Fork 0
garciaolais/bmp180-powershell
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
powershell script to get temperature, pressure,altitude from BMP180 sensor
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published