Skip to content

Commit

Permalink
Merge pull request happyme531#2 from twischer/pull1
Browse files Browse the repository at this point in the history
Support for setting QC config and read temperature
  • Loading branch information
happyme531 authored Aug 31, 2021
2 parents 749a1b7 + 3ff7c8a commit f0c0f5e
Show file tree
Hide file tree
Showing 3 changed files with 234 additions and 213 deletions.
6 changes: 3 additions & 3 deletions examples/SimpleTest/SimpleTest.ino
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ void loop() {
Serial.println("=======================================");
Serial.printf("Current input voltage:%dmV\n", sw.vin_mV);
Serial.printf("Current output voltage:%dmV\n", sw.vout_mV);
Serial.printf("Current output1 current:%dmA\n", sw.iout1_mA);
Serial.printf("Current output2 current:%dmA\n", sw.iout2_mA);
Serial.printf("Current USB-C current:%dmA\r\n", sw.iout_usbc_mA);
Serial.printf("Current USB-A current:%dmA\r\n", sw.iout_usba_mA);
Serial.printf("Current fast charge type:%s\n", fastChargeType2String(sw.fastChargeType));
if (sw.fastChargeType == SW35xx::PD_FIX || sw.fastChargeType == SW35xx::PD_PPS)
Serial.printf("Current PD version:%d\n", sw.PDVersion);
Serial.println("=======================================");
Serial.println("");
delay(2000);
}
}
Loading

0 comments on commit f0c0f5e

Please sign in to comment.