Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.pio
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

This is a simple tool for sending and receiving USB-PD VDM messages using a FUSB302, based on [usb-c-arduino](https://github.com/graycatlabs/usb-c-arduino).

USB-PD VDM documentation is [here](https://github.com/AsahiLinux/docs/wiki/Hardware:USB-PD)
USB-PD VDM documentation is [here](https://asahilinux.org/docs/hw/soc/usb-pd/)

# Wiring
#### Bare FUSB
Expand Down
7 changes: 7 additions & 0 deletions platformio.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[platformio]
src_dir = vdmtool

[env:nano_every]
platform = atmelmegaavr
board = nano_every
framework = arduino
2 changes: 2 additions & 0 deletions vdmtool/vdmtool.ino
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,8 @@ void evt_packet(void) {
handle_msg(sop, hdr, msg);
}

void vdm_fun();

void evt_sent(void) {
switch (st) {
case STATE_DFP_VBUS_ON:
Expand Down