Created attachment 217676 [details]
Diff-file for new bh1750-kmod port
FreeBSD kernel driver for a bh1750 sensor (up to two ones on an i2c bus).
It makes the sensor to measure ambient light every 5 seconds and updates a
corresponding sysctl(8) variables. You may manage the measurement by changing
For building the port You need the kernel sources installed into /usr/src.
As this driver is released under BSD 2-clause license, how about adding this to base directly?
I don't mind, I'll be glad.
(In reply to Alexander Mishin from comment #2)
Sorry that I was not clear, I am encourage you submitting a patch to the base.
This is my first posting of code, and I thought it might be worth starting with ports. But, thanks, I'll look for information on how to do this for the base.
I think it is not ready for the base yet. I found and fixed other day a bug (foolish enough one). I think that best to public it as a port and wait for the bug reports. And a question: must I send a corrected version of the port to this thread or create a new one?