SceOled: Difference between revisions
Jump to navigation
Jump to search
Devnoname120 (talk | contribs) |
Devnoname120 (talk | contribs) |
||
Line 73: | Line 73: | ||
<source lang="c">int SceOledSetBrightness(unsigned int brightness);</source> | <source lang="c">int SceOledSetBrightness(unsigned int brightness);</source> | ||
Set the brightness(brightness needs to be in the range <code>0-65536</code>). | Set the brightness (brightness needs to be in the range <code>0-65536</code>). <code>0</code> means screen turned off, <code>1</code> means screen dimmed (like if you wait for a long time without touching your screen). | ||
<code>0</code> means screen turned off, <code>1</code> means screen dimmed (like if you wait for a long time without touching your | |||
The brightness has actually 17 different values: 1 value for <code>brightness=0</code>, and 16 different values for the rest (<code>real_value=brightness/4096</code>). | The brightness has actually 17 different values: 1 special value for <code>brightness=0</code>, and 16 different values for the rest (<code>real_value=brightness/4096</code>). | ||
=== SceOledForDriver_2F0C4B67 === | === SceOledForDriver_2F0C4B67 === |
Revision as of 16:24, 9 July 2017
Module
Known NIDs
Version | Name | World | Privilege | NID |
---|---|---|---|---|
1.69 | SceOled | Non-secure | Kernel | 0x5410837A |
Libraries
Known NIDs
Version | Name | World | Visibility | NID |
---|---|---|---|---|
1.69 | SceOledForDriver | Non-secure | Kernel | 0x60C7478A |
Types
enum SceOledError { SCE_OLED_ERROR_INVALID_BRIGHTNESS_VALUE = 0x803F0A02, SCE_OLED_ERROR_INVALID_READY_STATUS = 0x803F0A03, SCE_OLED_ERROR_NOT_READY = 0x803F0A04, SCE_OLED_INTERNAL_ERROR = 0x803F0A05 }; enum SceOledStatus { SCE_OLED_STATUS_NOT_READY = 0, SCE_OLED_STATUS_READY = 1, SCE_OLED_STATUS_ERROR = 2 };
SceOledForDriver
SceOledWaitReady
Version | NID |
---|---|
3.60 | 0x0CC6BCB4 |
int SceOledWaitReady();
Waits until the OLED has been initialized.
SceOledGetBrightness
Version | NID |
---|---|
3.60 | 0x43EF811A |
int SceOledGetBrightness();
Get the wide brightness value (0-65536
).
SceOledSetBrightness
Version | NID |
---|---|
3.60 | 0xF9624C47 |
int SceOledSetBrightness(unsigned int brightness);
Set the brightness (brightness needs to be in the range 0-65536
). 0
means screen turned off, 1
means screen dimmed (like if you wait for a long time without touching your screen).
The brightness has actually 17 different values: 1 special value for brightness=0
, and 16 different values for the rest (real_value=brightness/4096
).
SceOledForDriver_2F0C4B67
Version | NID |
---|---|
3.60 | 0x2F0C4B67 |
int SceOledForDriver_2F0C4B67(u8 cmd, void *buffer, int size);
Sends a command to the OLED?
SceOledForDriver_E30604CC
Version | NID |
---|---|
3.60 | 0xE30604CC |
Dispatches the OLED cmd list (using SceOledForDriver_2F0C4B67).