Home > OS >  Linux VMware C program code problem
Linux VMware C program code problem

Time:10-06

Seek help from a great god!!!!!
This is a by the magician A8 development version to realize the application of intelligent lights, control led light when light is greater than 500, less than 500,
Met the question now is, light intensity output is normal, but the led light, uncontrolled
O great god if there is error code

CodePudding user response:

If no matter light intensity, direct use of ioctl (fd_ld, IOCtL_LED_OFF) led what state

CodePudding user response:

reference 1st floor mouse_zhu response:
if regardless of light intensity, the direct use of ioctl (fd_ld, IOCtL_LED_OFF) what led state
also not line, led only to maintain the initial state long bright, I think this program, and file the printf intensity at the end of that sentence actually didn't also play a role,

CodePudding user response:

If the ioctl (fd_ld, IOCTL_LED_OFF) doesn't work is the problem driven, first check driver, program there is no problem

CodePudding user response:

The LED is not controlled, illustrate the LED driver has a problem, has nothing to do with light,
  • Related