Search found 1 match

by raredrop
Fri Feb 11, 2022 10:03 pm
Forum: General discussion
Topic: Unable to set PB2 as INPUT_PULLUP on a BlackPill STMF411
Replies: 1
Views: 1427

Unable to set PB2 as INPUT_PULLUP on a BlackPill STMF411

I'm very new to all of this, so I'm probably missing something obvious.

I'm trying to set PB2 as a pull-up input on a WeAct STM32F411CEU6 BlackPill. The pinMode assignment appears to be ignored and PB2 acts like a pull-down input.

See the below...


#include <Arduino.h>

void setup(){
pinMode ...

Go to advanced search