title: Arduino Programming Without Arduino Libraries - Atmel Studio
body: <p>I would think this question has been asked thousands of times, I simply cannot find many resources on the subject.</p>
  
  <p>I would like to program my Arduino Uno (ATmega328P) using Atmel Studio and the C language, minus the Arduino Libraries. What I mean by this is that I would like to write code as follows:</p>
  
  <pre><code>int main(void) {
       /* set pin 5 of PORTB for output*/
       DDRB |= _BV(DDB5);
  
       while (1) {
         /* set pin 5 high to turn led on */
         PORTB |= _BV(PORTB5);
         _delay_ms(BLINK_DELAY_MS);
  
         /* set pin 5 low to turn led off */
         PORTB &amp;= ~_BV(PORTB5);
         _delay_ms(BLINK_DELAY_MS);
       }
  }
  </code></pre>
  
  <p>Rather than code that is riddled with the <em>oh so convenient</em> Arduino functions. I want to get under the hood and get dirty with Arduinos!</p>
  
  <p>That being said, I'm looking for any great learning sources that you  may be able to offer so that I can expand my knowledge! </p>
  
  <p>So far, the only <em>somewhat useful</em> source that I've managed to find is this page:
  <a href="https://hekilledmywire.wordpress.com/2010/12/04/22/" rel="nofollow">https://hekilledmywire.wordpress.com/2010/12/04/22/</a></p>
  
  <p>However, the images are missing and it seems minimalistic, anyways.</p>