This repository has been archived on 2025-06-02. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Os/root-fs/usr/bin/wallaby_get_id.sh
2018-04-07 23:26:16 +02:00

16 lines
327 B
Bash
Executable file

#!/bin/bash
VCMD1='i2cget -y 0 0x50 0x40'
VCMD2='i2cget -y 0 0x50 0x41'
VCMD3='i2cget -y 0 0x50 0x42'
VCMD4='i2cget -y 0 0x50 0x43'
V1=$(eval $VCMD1)
V2=$(eval $VCMD2)
V3=$(eval $VCMD3)
V4=$(eval $VCMD4)
printf "\x$(printf %x ${V1})"
printf "\x$(printf %x ${V2})"
printf "\x$(printf %x ${V3})"
printf "\x$(printf %x ${V4})"