Etnic
Posts: 3
Joined: Tue Feb 10, 2015 2:24 am

Compatibility Pi2 & Model B+

Tue Feb 10, 2015 2:32 am

Hi,

Will work this code on raspberry pi 2? https://learn.adafruit.com/adafruits-ra ... g/hardware
Is there any difference betwen raspberry pi 2 & model B+ ... I mean...I have model B+, will it work exactly same on raspberry 2? (code and schema of projects)

Thanks.

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Compatibility Pi2 & Model B+

Tue Feb 10, 2015 12:45 pm

Physical wiring is identical.

The problem you'll find is that the kernel and the way peripherals are configure for use by software has changed. You now need to add an extra line to /boot/config.txt and reboot to activate a 1-wire sensor.

Add this

Code: Select all

dtoverlay=w1-gpio
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Python”