What you use it for
- Test wiring without writing code
- Check if your Pi is overheating
- Detect an underpowered supply
Commands
Read a pin
pinctrl get 17Set GPIO17 as output, high
pinctrl set 17 op dhCPU temperature
vcgencmd measure_tempPower/throttling flags (0x0 = all good)
vcgencmd get_throttledPro tips
- If get_throttled is not 0x0, check your power supply and cooling first.
- pinctrl replaced the older raspi-gpio tool.