I am working on a project with an ESP8266 microcontroller. One of the digital pins is held high with a pull up to 3.3v. When a switch is closed, the line goes to ground, it triggers an interrupt in the ESP8266, which then logs the event.
This part works fine.
What I want to do is to get rid of the switch and ground, and drive the line low with at Attiny85.
With a pull-up resistor and 3.3V source tied to the pin on the ESP8266, can I connect that line one of the digital pins on the Attiny85, and use that to pull the line low (digitalWrite(Pin, LOW))?
Both chips are powered from the same power supply.
Will this work? Do I need to change the value of the pull up resistor (220 ohm )?
Thanks
-Dave