User Tools

Site Tools


check_device_i2c_address

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
check_device_i2c_address [2026/08/19 12:17] – [I2C Address Check] walkeradmincheck_device_i2c_address [2026/08/19 12:18] (current) – [I2C Address Check] walkeradmin
Line 29: Line 29:
   * i2c = I2C(0 - The Zero is for Bus 0   * i2c = I2C(0 - The Zero is for Bus 0
  
-The Pico has Bus 0 and Bus 1, and you should know which you used. If you have connected your device to Bus 1, then change this zero i2c = I2C(<color #ed1c24>0</color>, scl=Pin(5), sda=Pin(4), freq=200000) to a 1. +The Pico has Bus 0 and Bus 1, and you should know which you used. If you have connected your device to Bus 1, then change this zero  
-\\  + 
-  * scl=Pin(5), sda=Pin(4)+  * i2c = I2C(<color #ed1c24>0</color>, scl=Pin(5), sda=Pin(4), freq=200000) to a 1.
  
 These are the Pico pins your device is connected to, so scl(5) is Pico Pin 7 and sda(4)  is Pico pin 6. These are the Pico pins your device is connected to, so scl(5) is Pico Pin 7 and sda(4)  is Pico pin 6.
-\\  + 
-\\ +  * scl=Pin(5), sda=Pin(4) 
 If you run the code above, you will see something similar to below: If you run the code above, you will see something similar to below:
 \\  \\ 
check_device_i2c_address.1787141836.txt.gz · Last modified: by walkeradmin