Can someone offer a tested working example for setting the Nesso display brightness?
screen brightness is controlled through the display lib..
you should be able to control it like this..
found this here..
M5.Display.setBrightness(255);//takes a byte 0..255
But unfortunately things are still a bit broken, waiting for the updates to come out..
So I can confirm, it does not currently work, sorry..
~q
Is brightness control the only problem and that everything else on the display works as intended?
You mean screen drawing, then yes..
Mazes works, all but battery display on the info screen..
The issue is in the display lib, doing something so as the port ex-panders don’t work properly..
And we’re also waiting for esp 3.3.5 for the battery management..
~q
@qubits-us I got the battery level to work using M5.Power. Not sure about the voltage - it always shows 4.0. But the charge level seems correct.
M5.Display.drawFloat(M5.Power.getBatteryVoltage(), 1, (tx) + (nw / 2), ty + 12);
int cl = M5.Power.getBatteryLevel();
I had update the Espressive esp32 board code to version 3.3.4 earlier:
But yeah - seems like a newer version will solve a lot of the issue I've had when I started playing with this for the first time.
I tried m5 power, was always reporting 100% and 4 milli volts for me??
I should probably should try again..
~q
It appears that as of march 30, 2026, the brightness setting in the Nesso N1 still does not work.
Please correct me if I am wrong.
Have you tried NessoN1 library?
"Mazes" battery level works for me.... that was how you taught me to turn on battery charging.
@xfpd
That's a really old post, before the nessoN1 Lib existed and the battery problem did..
Last post I did with mazes uses the NessoN1 Lib all was good..
~q
Looking into this..
The back light is on the 1st port expander, don't see that it support pwm..
You could turn it off and on but don't think it has any dimming capabilities..
The function is built into the M5.Display but obviously does not actually do anything, their lib does support allot of screen and maybe some support dimming..
With the new NessoN1 Lib pretty sure everything is fixed up..
~q
Sorry... i only looked at the new, reopening post.
Just installed the NessoN1 1.0 library and tried the battery example. There is a compiler error: c:\Users\Mike\Documents\Arduino\libraries\Arduino_Nesso_N1\src/Arduino_Nesso_N1.h:49:20: error: conflicting declaration 'ExpanderPin LED_BUILTIN'
probably your Arduino ESP32 core is not current..
Under your board manager, what esp32 core do you have installed??
~q
that's strange..
maybe you're using the M5 Board package which also contains a nesso..
when I select the board, I search for nesso and I get 2 hits..
one with spaces and one without, I'm using the one with spaces which I believe is the board out of the espressif board package..
m5 uses an older esp32 core version for their boards..
I did just compile the battery example from the nesso lib..
Using library Arduino_Nesso_N1 at version 1.0.0 in folder: C:\Users\user\Documents\Arduino\libraries\Arduino_Nesso_N1
Using library Wire at version 3.3.7 in folder: C:\Users\user\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.3.7\libraries\Wire
Using library M5GFX at version 0.2.19 in folder: C:\Users\user\Documents\Arduino\libraries\M5GFX
Using library Arduino_BMI270_BMM150 at version 1.2.3 in folder: C:\Users\user\Documents\Arduino\libraries\Arduino_BMI270_BMM150
"C:\\Users\\user\\AppData\\Local\\Arduino15\\packages\\esp32\\tools\\esp-rv32\\2511/bin/riscv32-esp-elf-size" -A "C:\\Users\\user\\AppData\\Local\\arduino\\sketches\\0DFB277EC1A30EC5442825A7EE0ABB08/BatteryDisplay.ino.elf"
Sketch uses 355626 bytes (11%) of program storage space. Maximum is 3145728 bytes.
Global variables use 18084 bytes (5%) of dynamic memory, leaving 309596 bytes for local variables. Maximum is 327680 bytes.
a bunch of warnings in the esp32 core not surprising but compiled clean..
good luck.. ~q
Got it.
In boards, I was selecting esp32C6. You showed mw that I needed to select other boards and the Nesso. That fixed that problem. Thanks.





