summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-09-29 16:30:58 +0000
committerQMK Bot <hello@qmk.fm>2021-09-29 16:30:58 +0000
commitf58095fab7c6c0b36c4ef325737bdb009f8c1433 (patch)
tree6e42142422ab679fb2d66aa3814ea9986e48baf6 /keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c
parentf1aab47d13030bfe73794aa351b11cae07bd30f2 (diff)
parent0338481090f4c2330a7fd237416cf66ba2bd4d22 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c')
-rw-r--r--keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c b/keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c
index 240219f1d3..394c597b84 100644
--- a/keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c
+++ b/keyboards/handwired/tractyl_manuform/5x6_right/f411/f411.c
@@ -23,3 +23,9 @@ void matrix_scan_sub_kb(void) {
reset_keyboard();
}
}
+
+bool usb_vbus_state(void) {
+ setPinInputLow(USB_VBUS_PIN);
+ wait_us(5);
+ return readPin(USB_VBUS_PIN);
+}