# ATTiny85 DigitalWrite on all pins

**URL:** <https://forum.arduino.cc/t/attiny85-digitalwrite-on-all-pins/1187172>\
**Category:** General Guidance\
**Created:** [November 9, 2023, 1:15pm UTC](https://forum.arduino.cc/t/attiny85-digitalwrite-on-all-pins/1187172 "2023-11-09T13:15:00Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![alto777](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/alto777/32/317385_2.png) [@alto777](https://forum.arduino.cc/u/alto777)\
**Post date:** [November 9, 2023, 10:24pm UTC](https://forum.arduino.cc/t/attiny85-digitalwrite-on-all-pins/1187172/14 "2023-11-09T22:24:51Z")

</div>

Here's a high side MOSFET latching circuit I knew I saw go by recently on this thread

> [@Want to turn on a relay by connecting 2 wires](https://forum.arduino.cc/t/want-to-turn-on-a-relay-by-connecting-2-wires/1171160):
>
> Hello, I am new to this arduino world and I would like to create one project. Please help me to write a program for the below requirement. const int relayPin = 6; // Define the pin connected to the relay module const int firstWirePin = 2; // Define the pin for the first set of wires const int secondWirePin = 3; // Define the pin for the second set of wires bool relaystatus; bool secondwirestatus; void setup() { pinMode(relayPin, OUTPUT); pinMode(firstWirePin, INPUT\_PULLUP); pinMode(sec…

 ![image](https://europe1.discourse-cdn.com/arduino/original/4X/3/e/6/3e6d80a4019a1a70f02c19492366740aafd788c0.jpeg)

a7

---

_[View the full topic](https://forum.arduino.cc/t/attiny85-digitalwrite-on-all-pins/1187172)._
