No joy here
- Code: Select all
root@berry:~# ls /dev/i2c*
ls: cannot access /dev/i2c*: No such file or directory
root@berry:~# modprobe i2c
root@berry:~# ls /dev/i2c*
/dev/i2c
root@berry:~# i2cdetect -l
Any thoughts ?
root@berry:~# ls /dev/i2c*
ls: cannot access /dev/i2c*: No such file or directory
root@berry:~# modprobe i2c
root@berry:~# ls /dev/i2c*
/dev/i2c
root@berry:~# i2cdetect -l
root@...# time /opt/owfs/bin/owread /uncached/bus.0/28.5B8A57030000/type
DS18B20
real 0m0.023s
root@...# time /opt/owfs/bin/owread /uncached/bus.0/28.5B8A57030000/temperature
18.8125
real 0m1.404s
root@raspberrypi:~# modprobe i2c-dev
root@raspberrypi:~# i2cdetect -l
i2c-0 i2c bcm2708_i2c.0 I2C adapter
i2c-1 i2c bcm2708_i2c.1 I2C adapter
root@raspberrypi:~# i2cdetect 0
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-0.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: 20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@raspberrypi:~# i2cdetect 2
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-2.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- 37 -- -- 3a -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 51 52 53 54 55 56 57 -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
DexOS wrote:I could knock up a GPIO pins bare metal example in arm asm, but i have no R-PI to test it on, is there anyone that would test it at there own risk ?.
Has its a wast of my time, if no one will test it.
DexOS wrote:Cool, give a day or two and i will knock a bare metal test GPIO in asm.
I may even convert it to FBasic to make its easier to understand.
Frank Buss wrote:DexOS wrote:Cool, give a day or two and i will knock a bare metal test GPIO in asm.
I may even convert it to FBasic to make its easier to understand.
Someone did this already, it might help with your projects:
https://github.com/raspberrypi/firmware ... nt-5362664
beautifulsmall wrote:I have tried to change the i2c bus speed with a reg write but it defaults back when the i2c function is called.
modprobe i2c-bcm2708
modprobe i2c-dev
sudo nano /etc/modprobe.d/raspi-blacklist.conf
# blacklist spi and i2c by default (many users don't need them)
#blacklist spi-bcm2708
#blacklist i2c-bcm2708
pygmy_giant wrote:God bless you boffins – there is a debate on another thread about whether linux + I2C gyros/accellerometers could handle balancing a robot on 2 wheels. I for one am following your progress with interest – you are doing valuabe work…