Raspberry Pi Pico I2C Bus Oled Display amp BME280 sensor











>> YOUR LINK HERE: ___ http://youtube.com/watch?v=VZC59N-NfHQ

#Raspberrypipico #Raspberrypico • Raspberry Pi Pico project demo #I2C serial communication. • Oled display SSD1306 128x64 and sensor BME280 in same bus. • Thonny micropython code and bus scan address command on the shell. • Signals: SCL and SDA • Battery operated shield 18650 • Thonny python code: • from machine import Pin, I2C • from time import sleep • from ssd1306 import SSD1306_I2C • import BME280 • i2c = I2C(0,sda=Pin(0), scl=Pin(1), freq=400000) • oled = SSD1306_I2C(128,64,i2c) ## Oled Display pixel size 128x64 • oled.fill(0) • while True: • bme = BME280.BME280(i2c=i2c) • temp = bme.temperature • hum = bme.humidity No humidity in BMP280 • pres = bme.pressure • tempf temperature in Fahrenheit • tempf = (bme.read_temperature()/100) * (9/5) + 32 • tempf = str(round(tempf, 2)) + 'F' • ##print('Temperature:', temp ,tempf, ' Pressure: ',pres) • ##print('Humidity: ', hum) • • oled.fill(0) • oled.text( TEMPERATURE ,20,0) • oled.text(temp, 20,15) ### tempf Farenheit • oled.text( PRESSURE ,20,35) • oled.text(pres, 20,50) • oled.show() • sleep(0.3)

#############################









Content Report
Youtor.org / YTube video Downloader © 2025

created by www.youtor.org