I've been reading the article at https://dorkbotpdx.org/blog/paul/better_spi_bus_design_in_3_steps/, and need help in clarifying something. In the last paragraph of the Step 1: Pullup Resistors for Chip Select & Reset Signals section I read:
Does this mean that the code above is completely interchangeable with physical pullup resistors on the SPI slave devices? If yes, why?
Thanks in advance
A simpe workaround for devices without pullup resistor involves adding code at the beginning of setup.
void setup() {
pinMode(4, OUTPUT);
digitalWrite(4, HIGH);
pinMode(10, OUTPUT);
digitalWrite(10, HIGH);
delay(1);
// now it's safe to use SD.begin(4) and Ethernet.begin()
}
Does this mean that the code above is completely interchangeable with physical pullup resistors on the SPI slave devices? If yes, why?
Thanks in advance