Charles Steinkuehler <[email protected]> wrote: > On 3/4/2014 9:54 AM, [email protected] wrote: > > > > Can anyone point me at some Python (or even C if you like) code to > > read the real, raw, values? > > Read from: > /sys/devices/ocp.*/44e0d000.tscadc/tiadc/iio:device0/in_voltage*_raw > > Python code: > https://github.com/cdsteinkuehler/linuxcnc/blob/MachineKit-ubc/configs/ARM/BeagleBone/BeBoPr-Bridge/ReadTemp.py#L307 > > Brilliant, thank you! That's just what I needed to get me going in the right direction. I'd been wondering how to read the raw values directly using Python and hadn't realised that the obvious way to do it is to use Python's file reading ability, no need for system() calls or anything nasty like that.
I can bin all the IO libraries now, much happier doing it direct. Thanks again. -- Chris Green ยท -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
