You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

6 lines
114 B

2 years ago
#!/bin/bash
response = `i2cget -y 1 0x18 0x05`
upper_byte = $(($response & 0x00FF))
echo response
echo upper_byte