mirror of
https://github.com/koreader/koreader
synced 2024-11-18 03:25:46 +00:00
18 lines
430 B
Lua
18 lines
430 B
Lua
|
local BaseFrontLight = {
|
||
|
min = 1, max = 10,
|
||
|
intensity = nil,
|
||
|
}
|
||
|
|
||
|
function BaseFrontLight:init() end
|
||
|
function BaseFrontLight:toggle() end
|
||
|
function BaseFrontLight:setIntensityHW() end
|
||
|
|
||
|
function BaseFrontLight:setIntensity(intensity)
|
||
|
intensity = intensity < self.min and self.min or intensity
|
||
|
intensity = intensity > self.max and self.max or intensity
|
||
|
self.intensity = intensity
|
||
|
self:setIntensityHW()
|
||
|
end
|
||
|
|
||
|
return BaseFrontLight
|