Author Topic: Passing a pointer (Atmel Studio 6 and Xmega)  (Read 10936 times)

0 Members and 1 Guest are viewing this topic.

Offline David_AVDTopic starter

  • Super Contributor
  • ***
  • Posts: 2806
  • Country: au
Re: Passing a pointer (Atmel Studio 6 and Xmega)
« Reply #25 on: July 29, 2013, 10:32:57 am »
The graphics code was ported from some Arduino examples.  I'm changing it somewhat do suit my application.  I simply wanted something known as a starting point, as the TFT modules are a bit fiddly to configure.  The data sheet for the driver chip is a little sparse for my liking.

I did notice that you can add C or C++ units in Atmel Studio.  As I'm also starting to use XC8 for PICs, I'll probably stay with C for Atmel too.

As for the x/y positioning, I was thinking of using structures for the (touch) buttons to store the position, size, colour, caption, etc.  This will make it easier to add and move them around.
 

Offline David_AVDTopic starter

  • Super Contributor
  • ***
  • Posts: 2806
  • Country: au
Re: Passing a pointer (Atmel Studio 6 and Xmega)
« Reply #26 on: July 29, 2013, 11:56:55 pm »
Guys, thanks again for the explanations of the include and header files.  It's now clicked and seems perfectly logical.  For whatever reason I had a brain block on that yesterday.   :palm:
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf