Hi @jd68. Thanks for getting back to me.
jd68 wrote:
> OK, I assume that you see the BH1750 on I2C bus with 'i2cdetect -y 1',
> right?
Code:
--------------------
tc@pCP:~$ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- 23 -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
tc@pCP:~$
--------------------
Could I get the above result if one or two of the pins hadn't been
soldered correctly? My soldering skills were worse than I expected,
everything was so small !
> Well, actually you don't need the shell script from post #33 because it
> is only needed when the C program is used. Now the tasks of C program
> and shell script are covered by the Python script from post #23. Just
> executing the instructions of post #23 should be sufficient. Please let
> me know if not.
I'm now using the script from post #23, but still not seeing anything at
all happen.
The only difference I could see was > Requirement:
> You just need to install the extension "smbus-python3.6.tcz". pCP will
> add all dependencies, i.e. all other required extensions.
>
I couldn't find that extension so I presumed it had updated and flipped
it's name around, so I installed
Code:
--------------------
Title: python3.8-smbus.tcz
Description: Python bindings for Linux SMBus access through i2c-dev
Version: 1.1.post2
Author: Mark Hoffman
Original-site: https://pypi.org/project/smbus/
Copying-policy: GPLv2
Size: 8k
Extension_by: paul-123
Comments: Binaries Only
---
Compiled for piCore 12.x
---
ChangeLog:
Current: 2020/11/29 First version 1.1.post2
--------------------
Other than that I'm pretty sure I named the script correctly and created
the lux folder correctly and added the extra lines to /opt/bootlocal.sh
------------------------------------------------------------------------
Bogg's Profile: http://forums.slimdevices.com/member.php?userid=50888
View this thread: http://forums.slimdevices.com/showthread.php?t=112460
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix