Modifications

Sauter à la navigation Sauter à la recherche
640 octets ajoutés ,  21 août 2017 à 16:45
Ligne 6 : Ligne 6 :  
You'll also need to set up i2c on your Pi, to do so, run sudo '''raspi-config''' and under '''Advanced''' select I2C and turn it on.
 
You'll also need to set up i2c on your Pi, to do so, run sudo '''raspi-config''' and under '''Advanced''' select I2C and turn it on.
    +
Reboot once you've done that with {{fname|sudo reboot}}
 +
 +
== Vérifier le câblage ==
 +
Verify your wiring by running
 +
 +
sudo apt-get install python-smbus i2c-tools
 +
 +
to install the helper software and then {{fname|sudo i2cdetect -y 1}} at the command line, you should see ID #68 show up - that's the address of the DS1307, PCF8523 or DS3231!
 +
 +
If you have a much older Pi 1, you will have to run {{fname|sudo i2cdetect -y 0}} as the I2C bus address changed from 0 to 1
 +
 +
{{ADFImage|RASP-PCF8523-I2C-Test.gif}}
 +
 +
{{ambox|text= Once you have the Kernel driver running, i2cdetect will skip over 0x68 and display UU instead, this means its working!}}
    
{{RASP-PCF8523-TRAILER}}
 
{{RASP-PCF8523-TRAILER}}
29 922

modifications

Menu de navigation