PULLUP and PULLDOWN

I am trying to use INPUT_PULLUP and INPUT_PULLDOWN statements and the compiler doesn't like them. Has something changed that I don't know about?

Where have you seen INPUT_PULLDOWN?

It's not bogus, some cores have it because the processor supports it. But it is rare. Probably, the OP is porting something written for one of those...

evanmars:
Where have you seen INPUT_PULLDOWN?

Here is a link: https://www.arduino.cc/en/Tutorial/DigitalInputPullup

mhcomp:
I am trying to use INPUT_PULLUP and INPUT_PULLDOWN statements and the compiler doesn't like them. Has something changed that I don't know about?

Forget this topic-it is working now. Maybe I am just losing my mind (what little is left of it).

Yep, only INPUT_PULLUP is supported. '328P,1284P, 2560 do not have internal pulldowns.

Most STM32 processors have it, example from the wiring_digital.c source because I couldn't find the enum:

     case INPUT_PULLUP:
        pin_function(p, STM_PIN_DATA(STM_MODE_INPUT, GPIO_PULLUP, 0));
        break;
      case INPUT_PULLDOWN:
        pin_function(p, STM_PIN_DATA(STM_MODE_INPUT, GPIO_PULLDOWN, 0));
        break;

The atmega4809 used in the Uno WiFi Rev 2 and Nano Every also has it:

typedef enum {
  INPUT           = 0x0,
  OUTPUT          = 0x1,
  INPUT_PULLUP    = 0x2,
  INPUT_PULLDOWN  = 0x3,
} PinMode;