Skip to content

Instantly share code, notes, and snippets.

View DaehanWon's full-sized avatar

Daehan Won DaehanWon

View GitHub Profile
import smbus
import time
# --- BMP280 Registers ---
# Default I2C address (Change to 0x77 if 0x76 doesn't work)
DEVICE_ADDR = 0x76
# Register Addresses
REG_DATA = 0xF7
REG_CONTROL = 0xF4
@DaehanWon
DaehanWon / config.txt
Created November 19, 2024 13:04
configtxt5
# For more options and information see
# http://rptl.io/configtxt
# Some settings may impact device functionality. See link above for details
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Enable audio (loads snd_bcm2835)