mirror of https://github.com/koreader/koreader
Pocketbook: waveform presets (#6794)
On pocketbook, update modes are not as clear cut due to overall chipset and kernel version mess. Inkview solves this by always using the slowest (and safe) GC16 waveform. We now do that too by default. Slow updates suck though, so there's now a menu entry to configure it for speed (with mild artifacts at best, kernel panic at worst). This is a generic interface (any eink Screen can announce support). The driver may interpret the slow/fast range however they want.reviewable/pr6738/r1
parent
dda905271d
commit
5a86443eb1
@ -1 +1 @@
|
|||||||
Subproject commit 78204b02feb4e7b00d110626634eb8c00e1d503b
|
Subproject commit 5f9e9b7eb39fc98cdacba52d081fe2b559fcfb33
|
@ -0,0 +1,36 @@
|
|||||||
|
local _ = require("gettext")
|
||||||
|
local Device = require("device")
|
||||||
|
local InfoMessage = require("ui/widget/infomessage")
|
||||||
|
local UIManager = require("ui/uimanager")
|
||||||
|
local Screen = Device.screen
|
||||||
|
local T = require("ffi/util").template
|
||||||
|
|
||||||
|
local items = {}
|
||||||
|
for i=0, Screen.wf_level_max do
|
||||||
|
local info
|
||||||
|
if i == 0 then
|
||||||
|
info = _("Level 0: high quality, slowest")
|
||||||
|
elseif i == Screen.wf_level_max then
|
||||||
|
info = T(_("Level %1: low quality, fastest"), i)
|
||||||
|
else
|
||||||
|
info = T(_("Level %1"), i)
|
||||||
|
end
|
||||||
|
|
||||||
|
table.insert(items, {
|
||||||
|
text = info,
|
||||||
|
checked_func = function() return Screen.wf_level == i end,
|
||||||
|
callback = function()
|
||||||
|
Screen.wf_level = i
|
||||||
|
G_reader_settings:saveSetting("wf_level", i)
|
||||||
|
UIManager:show(InfoMessage:new{
|
||||||
|
text = _("This will take effect on next restart."),
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end
|
||||||
|
|
||||||
|
return {
|
||||||
|
text = _("Refresh speed/fidelity"),
|
||||||
|
sub_item_table = items,
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue