Code Monkey home page Code Monkey logo

backlight_dimmer's People

Contributors

dougielawson avatar nathanramanoodles avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

qlink84 nsyntych

backlight_dimmer's Issues

It works on FullPageOS?

Dear @nathanRamaNoodles,
your backlight_dimmer fork is a great idea, so I appreciate it!

I'am trying to integrate it on my raspberry pi 3b+ with the official 7inch touch display running in kiosk-mode with FullPageOS distro (version 2019-12-01_2019-09-26-fullpageos-no-acceleration-buster-lite-0.11.0.zip) with no success.

After installation, when I fire the command 'sudo ./timeout pi 30 event0 event1' nothing happening.
Do you think my problem it will be the input device?

"display-manager.service not found" on dietpi

hi nathan,

i'm trying to get this working with dietpi on my raspi 4 with 7 inch touch screen.
when i'm trying to start it it get "display-manager.service not found". i don't know if the cause is dietpi or backlight_dimmer... can you help me on that ?

best regards

backlight_dimmer with touchscreen via hdmi + usb ports possible ?

two questions i hope you can answer:

1st:
will your modified backlight_dimmer program work also with a touchscreen hooked up via hdmi (picture) + usb (touch input) ?
2nd:
do you know if it's possible to combine your modified backlight_dimmer program with the pi camera motion detection described here: https://www.youtube.com/watch?v=PGxpndmnYyY
(= wake on motion)

i'm planning to use your script for another pi hooked up to big touchscreen (hdmi + usb) and want to use the pi camera for motion detection. if a motion is detected the screen should wake up and go to sleep after a defined time ...

Compile error

$ make
cc    -c -o timeout.o timeout.c
timeout.c: In function ‘increase_brightness’:
timeout.c:299:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
     for (uint16_t i = 0; i <= max_brightness-fade_amount; i++) {
     ^
timeout.c:299:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
timeout.c:313:5: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
     for (uint16_t i = max_brightness; i > 0 + fade_amount; i--) {
     ^
timeout.c: In function ‘main’:
timeout.c:355:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
   for (uint16_t i = 0; i < tlen; i++) {
   ^
timeout.c:365:17: error: redefinition of ‘i’
   for (uint16_t i = 0; i < num_dev; i++) {
                 ^
timeout.c:355:17: note: previous definition of ‘i’ was here
   for (uint16_t i = 0; i < tlen; i++) {
                 ^
timeout.c:365:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
   for (uint16_t i = 0; i < num_dev; i++) {
   ^
timeout.c:379:17: error: redefinition of ‘i’
   for (uint16_t i = 0; i < num_dev; i++) {
                 ^
timeout.c:365:17: note: previous definition of ‘i’ was here
   for (uint16_t i = 0; i < num_dev; i++) {
                 ^
timeout.c:379:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
   for (uint16_t i = 0; i < num_dev; i++) {
   ^
timeout.c:422:7: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
       for (uint16_t i = 0; i < num_dev; i++) {
       ^
timeout.c:437:7: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
       for (uint16_t i = 0; i < num_dev; i++) {
       ^
: recipe for target 'timeout.o' failed
make: *** [timeout.o] Error 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.