diff --git a/Test extension RPI.py b/Test extension RPI.py index ef49274..fbf7995 100644 --- a/Test extension RPI.py +++ b/Test extension RPI.py @@ -11,7 +11,6 @@ import RPi.GPIO as GP import time import Adafruit_MCP9808.MCP9808 as mcp -import serial import threading # initialisation du raspberry diff --git a/get_temp.sh b/get_temp.sh index e69de29..d5352d9 100644 --- a/get_temp.sh +++ b/get_temp.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +response = `i2cget -y 1 0x18 0x05` +upper_byte = $(($response & 0x00FF)) +echo response +echo upper_byte \ No newline at end of file