Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| from gpiozero import LED, MotionSensor, LightSensor | |
| from signal import pause | |
| pir = MotionSensor(21) | |
| ldr = LightSensor(26) | |
| light = LED(25) | |
| def daytime(): | |
| pir.when_motion = None | |
| pir.when_no_motion = None | |
| light.off() | |
| def nighttime(): |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
| # | |
| # This script will increment the build number in a file | |
| # refactored from the AssemblyInfo.cs version incrementing gist for use with AndroidManifest.xml | |
| # | |
| #$assemblyInfoPath = "C:\Data\Temp\AssemblyInfo.cs" | |
| $mani = "C:\Data\Temp\AndroidManifest.xml" | |
| #$contents = Get-Content $assemblyInfoPath # looses file formatting | |
| $contents = [System.IO.File]::ReadAllText($mani) |