如果我的应用程序不只是打开 LED 灯,而是让它像下图所示那样快速闪烁,或者只是保持打开状态,我的应用程序会节省电池吗?
pon.setFlashMode(Camera.Parameters.FLASH_MODE_TORCH);
poff.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);
while(lightShouldBeOn) {
try{
cam.setParameters(pon);
Thread.sleep(delay);
cam.setParameters(poff);
Thread.sleep(delayoff);
}
}