Kaynağa Gözat

extended readme

Thomas B 2 ay önce
ebeveyn
işleme
95a0fb91c0
1 değiştirilmiş dosya ile 36 ekleme ve 0 silme
  1. 36
    0
      README.md

+ 36
- 0
README.md Dosyayı Görüntüle

@@ -1,6 +1,42 @@
1 1
 # AutoBrightness
2 2
 
3
+Simple solution to measure ambient room lighting conditions with an AtTiny85 based USB lux sensor and set external display backlight intensity accordingly via DDC/CI.
3 4
 
5
+See [this blog post for details](https://www.xythobuz.de/auto_brightness.html).
6
+
7
+## Sensor
8
+
9
+Uses a [Digispark Rev. 3 clone](https://www.az-delivery.de/en/products/digispark-board) with a [GY-302 BH1750 breakout board](https://www.az-delivery.de/en/products/gy-302-bh1750-lichtsensor-lichtstaerke-modul-fuer-arduino-und-raspberry-pi) connected to the I2C bus.
10
+
11
+[![Front of PCB](https://www.xythobuz.de/img/autobrightness_pcb_1_small.jpg)](https://www.xythobuz.de/img/autobrightness_pcb_1.jpg)
12
+[![Back of PCB](https://www.xythobuz.de/img/autobrightness_pcb_2_small.jpg)](https://www.xythobuz.de/img/autobrightness_pcb_2.jpg)
13
+
14
+### Quick Start
15
+
16
+Check out the repo and required submodules.
17
+
18
+    git clone https://git.xythobuz.de/thomas/AutoBrightness.git
19
+    cd AutoBrightness
20
+    git submodule update --init
21
+
22
+Build the firmware and upload it.
23
+
24
+    make -C sensor upload
25
+
26
+Prepare udev rules for our new device.
27
+
28
+    sudo cp sensor/49-autobrightness.rules /etc/udev/rules.d/49-autobrightness.rules
29
+    sudo udevadm control --reload-rules
30
+    sudo udevadm trigger
31
+
32
+## Client
33
+
34
+### Quick Start
35
+
36
+Install dependency and run the client.
37
+
38
+    yay -S python-pyusb
39
+    ./client/brightness.py
4 40
 
5 41
 ## License
6 42
 

Loading…
İptal
Kaydet