mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
5a86443eb1
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.
36 lines
1.2 KiB
Lua
36 lines
1.2 KiB
Lua
local Device = require("device")
|
|
local _ = require("gettext")
|
|
local Screen = Device.screen
|
|
|
|
local eink_settings_table = {
|
|
text = _("E-ink settings"),
|
|
sub_item_table = {
|
|
{
|
|
text = _("Use smaller panning rate"),
|
|
checked_func = function() return Screen.low_pan_rate end,
|
|
callback = function()
|
|
Screen.low_pan_rate = not Screen.low_pan_rate
|
|
G_reader_settings:saveSetting("low_pan_rate", Screen.low_pan_rate)
|
|
end,
|
|
},
|
|
require("ui/elements/flash_ui"),
|
|
require("ui/elements/flash_keyboard"),
|
|
{
|
|
text = _("Avoid mandatory black flashes in UI"),
|
|
checked_func = function() return G_reader_settings:isTrue("avoid_flashing_ui") end,
|
|
callback = function()
|
|
G_reader_settings:flipNilOrFalse("avoid_flashing_ui")
|
|
end,
|
|
},
|
|
},
|
|
}
|
|
|
|
if Device:hasEinkScreen() then
|
|
table.insert(eink_settings_table.sub_item_table, 1, require("ui/elements/refresh_menu_table"))
|
|
if (Screen.wf_level_max or 0) > 0 then
|
|
table.insert(eink_settings_table.sub_item_table, require("ui/elements/waveform_level"))
|
|
end
|
|
end
|
|
|
|
return eink_settings_table
|