Skip to content

Commit 9563b8b

Browse files
committed
Add log example and remove unnecessary header file
1 parent 1208baa commit 9563b8b

File tree

2 files changed

+18
-68
lines changed

2 files changed

+18
-68
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#include <Wire.h>
2+
#include <PD_UFP.h>
3+
4+
#define FUSB302_INT_PIN 12
5+
6+
PD_UFP_Log_c PD_UFP;
7+
8+
void setup() {
9+
Wire.begin();
10+
PD_UFP.init_PPS(FUSB302_INT_PIN, PPS_V(8.4), PPS_A(2.0));
11+
12+
Serial.begin(9600);
13+
}
14+
15+
void loop() {
16+
PD_UFP.run();
17+
PD_UFP.print_status(Serial);
18+
}

src/PD_UFP_Log.h

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)