from machine import Pin,SoftI2C, Timer
from ssd1306 import SSD1306_I2C
import onewire,ds18x20, time
i2c = SoftI2C(sda=Pin(18), scl=Pin(17))
from ssd1306 import SSD1306_I2C
oled = SSD1306_I2C(128, 64, i2c, addr=0x3c)
ow= onewire.OneWire(Pin(4))
ds = ds18x20.DS18X20(ow)
rom = ds.scan()
led_r=Pin(21,Pin.OUT)
led_g=Pin(22,Pin.OUT)
led_b=Pin(23,Pin.OUT)
ds.convert_temp()
while 1:
temp = ds.remp(rom[0])
oled.fill(0)
oled.text('MicrPython',0,0)
oled.show()