mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Battery level no longer return battery level in percentage
This commit is contained in:
parent
b88de72826
commit
9af835e8fe
1 changed files with 2 additions and 2 deletions
|
@ -89,8 +89,8 @@ void loop() {
|
||||||
if(Xbox.getButtonClick(i,XBOX)) {
|
if(Xbox.getButtonClick(i,XBOX)) {
|
||||||
Xbox.setLedMode(i,ROTATING);
|
Xbox.setLedMode(i,ROTATING);
|
||||||
Serial.print(F("Xbox (Battery: "));
|
Serial.print(F("Xbox (Battery: "));
|
||||||
Serial.print(Xbox.getBatteryLevel(i));
|
Serial.print(Xbox.getBatteryLevel(i)); // The battery level in the range 0-3
|
||||||
Serial.println(F("%)"));
|
Serial.println(F(")"));
|
||||||
}
|
}
|
||||||
if(Xbox.getButtonClick(i,SYNC))
|
if(Xbox.getButtonClick(i,SYNC))
|
||||||
Serial.println(F("Sync"));
|
Serial.println(F("Sync"));
|
||||||
|
|
Loading…
Reference in a new issue