/dev/i2c-1
I2C-1
and then it can be accessed through /dev/i2c-1
.GPIO I2C-10
and I2C-4
doesn't have to be connected while using I2C-1
.phaseshifter wrote:with the shifter sheild it works on its own you need 3.3 volts to power it and if that is the case which i have tried you should only need 1 i2c buss but that is not the case..i think something is a miss with the pinnouts on the w-b running direct on the xu4 i dont think it is possible to do it without the shifter..
sudo ./weather_board /dev/i2c-1
sudo apt install git
sudo git clone https://github.com/hardkernel/WEATHER-BOARD.git
cd WEATHER-BOARD/c_weather
make
sudo ./weather_board /dev/i2c-1
sudo -s
echo "options fbtft_device name=hktft9340 busnum=1 rotate=270" > /etc/modprobe.d/odroid-cloudshell.conf
echo "spi_s3c64xx" >> /etc/modules
echo "spidev" >> /etc/modules
echo "fbtft_device" >> /etc/modules
/etc/modprobe.d/blacklist-odroid.conf
# IO Board
blacklist ioboard_bh1780
blacklist ioboard_bmp180
blacklist ioboard_keyled
# SPI
# blacklist spidev
# blacklist spi_s3c64xx
# 3.2" LCD Touchscreen driver
blacklist ads7846
section "device"
Identifier "ODROID"
Driver "fbdev"
Option "fbdev" "/dev/fb1"
Option "Debug" "false"
Option "DPMS" "false"
EndSection
Section "Screen"
Identifier "Default Screen"
Device "ODROID"
EndSection
Section "ServerLayout"
Identifier "Default Layout"
Option "BlankTime" "0"
Option "StandbyTime" "0"
Option "SuspendTime" "0"
Option "OffTime" "0"
EndSection
Section "DRI"
Mode 0666
EndSection
cd /WEATHER-BOARD/c_weather#
sudo ./weather_board /dev/i2c-1
phaseshifter wrote:i dont know about the git code though it is still reading 4-5 degrees high on the thermometer....it is prolly out dated if anybody can give a updated version to clone and make that would be good
sudo i2cdetect -y n
. n
is channel number you have to try.ls /dev/i2c*
outputs.odroid@odroid:~$ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
odroid@odroid:~$ ls /dev/i2c*
/dev/i2c-1 /dev/i2c-2 /dev/i2c-4 /dev/i2c-5
odroid@odroid:~$
mannix wrote:Ok, I will contact you then
In theory I'd like to stick to kernel 3.x being the safest and LTS.
Unless nginx is performing much better with kernel 4.x then I'd consider it...
i2cdetect -y -r 5
root@odroid:/home/odroid# i2cdetect -y -r 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: 60 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@odroid:/home/odroid#
i2cdetect -y -r 5
Return to Hardware and peripherals
Users browsing this forum: No registered users and 4 guests