oaf-boost/source/arm11/anopatch.c

12 lines
395 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 因为原作者对libn3ds做出了许多大调整可能去掉了一些
// 原来使用的代码,但我修改的内容又用到了,所以我就得
// 在这里自己实现一份
#include "arm11/anopatch.h"
#include "arm11/drivers/lcd.h"
void setBrightness(u16 brightness)
{
LcdRegs *const lcd = getLcdRegs();
lcd->abl0.bl_pwm_duty = brightness;
lcd->abl1.bl_pwm_duty = brightness;
}