Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5599

Raspberry Pi OS • Re: How to enable/disable I2C from Python script ?

$
0
0
Call the dtoverlay shell command. You may need root privileges though.

See:

Code:

man dtoverlay
and python's os.system() function and python's subprocess.run() function.

Statistics: Posted by thagrol — Thu Jun 27, 2024 1:27 pm



Viewing all articles
Browse latest Browse all 5599

Trending Articles