How to use ATmega pins?

I would like to use the ATmega pins A0~A5 with digital output.

How can I do?

Comments

  • I have the 8-bit board
  • biomurphbiomurph Brooklyn, NY
    You will need to modify the Arduino firmware located on our git here

    The pins A0 to A5 work just like the analog pins on the Arduino UNO. You can use them as analog inputs,
    or you could use them as digital IOs. To make them digital, simply write

    pinMode(14,INPUT);  // turns analog pin 0 to a digital input
    or
    pinMode(14,OUTPUT); // turns analog pin 0 to a digital output

    then use the pins as you like in the loop()

    check out this tutorial that covers our 32bit board. 
    the code is quite similar.

    Currently, we are working on tutorial for the 8bit board as well.
Sign In or Register to comment.