XMEGA NEWBIE

Go To Last Post
2 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Below is a screenshot of the source file of the device whose ports I intend using the block of codes below (assisted by the lovely guys in this group with editing my original program) to control switches connected to the xmega256au. my issue now is merging the ports program with this source file. what file will I add to the source file, will I create another file (.c and .h) etc Thank you

Josh

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Raven231996.

 

I am not sure if I understood your question correctly, and pardon me, but normally for exercising port input/output you don't need any external files.  If your only trying to read switches connected to your pins, then all you need is the avrio.h file, which you already have.  So may be if you can provide some insight to what exactly your doing. 

Regards.