From a8da762955c230dd731cdc0d40244bd400c7509c Mon Sep 17 00:00:00 2001 From: NiLuJe Date: Thu, 16 Jul 2020 13:18:10 +0200 Subject: [PATCH] Initial handling of the upcoming Kobo Nia (#6380) Obviously untested ;p --- frontend/device/kobo/device.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/device/kobo/device.lua b/frontend/device/kobo/device.lua index 38f32e4cc..2f2ba0f8a 100644 --- a/frontend/device/kobo/device.lua +++ b/frontend/device/kobo/device.lua @@ -262,6 +262,15 @@ local KoboStorm = Kobo:new{ }, } +-- Kobo Nia: +--- @fixme: Untested, assume it's Clara-ish for now. +local KoboLuna = Kobo:new{ + model = "Kobo_luna", + hasFrontlight = yes, + touch_snow_protocol = true, + display_dpi = 212, +} + -- This function will update itself after the first touch event local probeEvEpochTime probeEvEpochTime = function(self, ev) @@ -827,6 +836,8 @@ elseif codename == "frost" then return KoboFrost elseif codename == "storm" then return KoboStorm +elseif codename == "luna" then + return KoboLuna else error("unrecognized Kobo model "..codename) end