Browse Source

3.141

master
BARRAUX Arthur 2 years ago
parent
commit
67cbf1e899
  1. 6
      get_temp.sh

6
get_temp.sh

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
response = `i2cget -y 1 0x18 0x05` response = `i2cget -y 1 0x18 0x05 w`
upper_byte = $(($response & 0x00FF)) upper_byte = $(($response & 0x00FF))
echo response echo $response
echo upper_byte echo $upper_byte
Loading…
Cancel
Save