Module device.kobo.nickel_conf

Access and modify values in Kobo eReader.conf used by Nickel.

Only PowerOptions:FrontLightLevel is currently supported.

Functions

NickelConf.frontLightLevel.get () Get frontlight level.
NickelConf.frontLightState.get () Get frontlight state.
NickelConf.colorSetting.get () Get color setting.
NickelConf._write_kobo_conf (re_Match, key, value, dontcreate) Write Kobo configuration.
NickelConf.frontLightLevel.set (new_intensity) Set frontlight level.
NickelConf.frontLightState.set (new_state) Set frontlight state.
NickelConf.colorSetting.set (new_color) Set color setting.


Functions

NickelConf.frontLightLevel.get ()
Get frontlight level.

Returns:

    int Frontlight level.
NickelConf.frontLightState.get ()
Get frontlight state.

This entry will be missing for devices that do not have a hardware toggle button. We return nil in this case.

Returns:

    int Frontlight state (or nil).
NickelConf.colorSetting.get ()
Get color setting.

Returns:

    int Color setting.
NickelConf._write_kobo_conf (re_Match, key, value, dontcreate)
Write Kobo configuration.

Parameters:

  • re_Match string Lua pattern.
  • key string Kobo conf key.
  • value
  • dontcreate boolean Don't create if key doesn't exist.
NickelConf.frontLightLevel.set (new_intensity)
Set frontlight level.

Parameters:

  • new_intensity integer
NickelConf.frontLightState.set (new_state)
Set frontlight state.

Parameters:

  • new_state boolean
NickelConf.colorSetting.set (new_color)
Set color setting.

Parameters:

  • new_color integer >= 1500 and <= 6400
generated by LDoc 1.5.0 Last updated 2024-12-19 07:44:17