Skip to content
hawkeyexp edited this page Dec 7, 2018 · 6 revisions

Starting with Pre14 you can use a brightness sensor to control the display.

Required: TSL2561 i2c sensor (cheap and everywhere available)

  • Connect the sensor to th RPi's i2c bus

    • Sensor -> RPi3-Pin
    • GND -> Pin 6 (GND)
    • Vcc/Vin -> Pin 1 (3,3V)
    • SDA -> Pin 3 (SDA)
    • SCL -> Pin 5 (SCL)
  • Enable the sensor in settings -> CS-HW

  • Reboot

  • Adjust your values for lux (switch level) and display brightness which is set by switch level in crankshaft_env.sh if needed. A more comfortable way to adjust the values will be integrated in later builds - currently it is a bringup.

Update: Starting with Pre15 you will get a config page in settings after lightsensor is enabled in CS-HW. Do a reboot after setup. Now changed settings are used instant for the tsl2561.

Note: If you are using a lightsensor manual swiching between day/night is disabled.

Clone this wiki locally