Type to search.

Software

4 min

External Activity and Power LEDs on RPi 5

On the Raspberry Pi 5, the former green activity LED and red power LED are combined into a single multi-function LED. It is no longer wired directly to simple GPIO pins. If you want to relocate this LED to an external…

softwareraspberrypi

3 min

Swift: Don't use nested ternary operators

The ternary operator is a very handy notation to simply abbreviate if else constructs. And often it’s seen nested - one, two or three times. The compiler has no problems with such code. But we, as human beings, reach…

softwareswift

3 min

SwiftUI: Platform ViewModifier

SwiftUI is fantastic when you need to write code for different platforms. The code can be shared. But how do I distinguish platform-specific code parts?

softwareswift