pinMode()

pentacoretkos

New member
Hey guys,

which possibilities do I have in the pinMode() void?
I know INPUT, OUTPUT, INPUT_PULL(UP/DOWN)

Are there more possibilities / do I have to set a pinmode when i want to use it as an i2c pin (SDA/SCL)?

The compiler didn´t print a mistake, when i coded pinMode(19,SCL) but I don´t think that´s necessary / right ...


Thanks,
Ben :)
 
Teensy at hand not specified?

Not sure if it makes a diff but for Teensy 3.x:
Code:
#define INPUT		0
#define OUTPUT		1
#define INPUT_PULLUP	2
#define INPUT_PULLDOWN   3
#define OUTPUT_OPENDRAIN 4
#define INPUT_DISABLE   5

Typically pins used for a 'bus', i2c or SPI or Serial#, are set in the .begin() call. Any calls to pinMode() can only mess up the needed configuration.
 
Back
Top