user7788: Is it ok to use 
digitalWrite(pin, 1) instead of digitalWrite(pin, HIGH)

or 
digitalWrite(pin, 0) instead of digitalWrite(pin, LOW)

I want it that way to make the coding lesser because I save values on EEPROM with 1's and 0's. So if I want to use EEPROM value, I can call it this way
digitalWrite(pin, EEPROM.read(1))


user2881: From the arduino source code:
#define HIGH 0x1
#define LOW  0x0

So HIGH is exactly the same as 1. And LOW exactly the same as 0.

user4143: Yes, that is fine.  LOW is 0 and HIGH is 1.  digitalWrite() sets the output to off if it receives a 0 and on if it receives anything of 1 or more.
That means that these are all equivalent:
digitalWrite(pin, HIGH);
digitalWrite(pin, 1);
digitalWrite(pin, 69);

It's especially useful when you are examining a variable for, say, a certain bit being set:
digitalWrite(pin, bytevar & 0x80);

That will set the pin to high on any value from 128 to 255 in the byte variable, and low for anything below 128.

7788: <p>Is it ok to use </p>

<pre><code>digitalWrite(pin, 1) instead of digitalWrite(pin, HIGH)
</code></pre>

<p>or </p>

<pre><code>digitalWrite(pin, 0) instead of digitalWrite(pin, LOW)
</code></pre>

<p>I want it that way to make the coding lesser because I save values on EEPROM with 1's and 0's. So if I want to use EEPROM value, I can call it this way</p>

<pre><code>digitalWrite(pin, EEPROM.read(1))
</code></pre>
 2881: <p>From the <a href="https://github.com/arduino/Arduino/blob/master/hardware/arduino/avr/cores/arduino/Arduino.h#L40-L41" rel="nofollow">arduino source code</a>:</p>

<pre><code>#define HIGH 0x1
#define LOW  0x0
</code></pre>

<p>So <code>HIGH</code> is <strong>exactly</strong> the same as <code>1</code>. And <code>LOW</code> exactly the same as <code>0</code>.</p>
 4143: <p>Yes, that is fine.  LOW is 0 and HIGH is 1.  <code>digitalWrite()</code> sets the output to off if it receives a 0 and on if it receives anything of 1 or more.</p>

<p>That means that these are all equivalent:</p>

<pre><code>digitalWrite(pin, HIGH);
digitalWrite(pin, 1);
digitalWrite(pin, 69);
</code></pre>

<p>It's especially useful when you are examining a variable for, say, a certain bit being set:</p>

<pre><code>digitalWrite(pin, bytevar &amp; 0x80);
</code></pre>

<p>That will set the pin to high on any value from 128 to 255 in the byte variable, and low for anything below 128.</p>
