Skip to content

Commit

Permalink
Fix comment about pull-up and pull-down
Browse files Browse the repository at this point in the history
  • Loading branch information
cnlohr committed Sep 27, 2024
1 parent 1baeca0 commit f124043
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/gpio_and_adc/gpio_and_adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
// * If 5V is applied to 5v-tolearnt pin (PC1, 2, 5, 6, 5V tolerant pins) no current flows.
// * If 5V is applied to other pins, pin sinks 20mA from 5V
// PU/PD
// * If 5V is applied, pin sinks 20mA.
// * Pull-up and Pull-down.
// * Output 1: pin sources 76uA from GND.
// * Output 0: pin sinks 76uA from 3.3v.
// * I.e. If you want to have a pull-up, configure PUPD, then set output to 1.
// * If 5V is applied, pin sinks 20mA.
// * If within 0...3.3V, pretend it has 45k Ohms.

#include "ch32v003fun.h"
Expand Down

0 comments on commit f124043

Please sign in to comment.