@wa-berlin said in Core2 how to know the current battery level:
batPercentage = ( batVoltage < 3.2 ) ? 0 : ( batVoltage - 3.2 ) * 100;
micropython welcome :
batPercentage=0 if batVoltage<0 else round((batVoltage-3.2)*100)
lcd.print(str(batPercentage)+"%",0,0)
;-)