Skip to content

Instantly share code, notes, and snippets.

@YourFriendCaspian
Created November 6, 2022 01:53
Show Gist options
  • Save YourFriendCaspian/0cd0c8df23049e65c0ff8fa312bce97d to your computer and use it in GitHub Desktop.
Save YourFriendCaspian/0cd0c8df23049e65c0ff8fa312bce97d to your computer and use it in GitHub Desktop.
Measure the voltage out of our PSU
#!/bin/bash
awk '{printf ("%0.2f",$1/172.5); }' </sys/devices/iio_sysfs_trigger/subsystem/devices/iio\:device0/in_voltage6_raw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment