SparkFun Forums 

Where electronics enthusiasts find answers.

Discussions on the software and hardware for Atmel's STK standard.
By TheNightWhisper
Hi My friends
I'm newbie with AVR U Controllers and I'm have Arduino uno and an AVR UController ATMEGA8A and using Atmel studio 7 for my code,
I've built IR remote control receiver with arduino uno with the help of IR library and it works very fine,
but also i want to build the same project with ATMEGA8A and using arduino library (IRRemote.h) that i've used befor
, so when i compile the program with the name main.c ,I've got a tons of error and after googling the issue i have renamed the "main.c" to "main.cpp" and compiled the app I've stuck with two errors

Error recipe for target 'RemoteCtrl.elf' failed RemoteCtrl E:\Projects\ATMEL UController\RemoteCtrl\Debug\Makefile 96 Build
Error ld returned 1 exit status RemoteCtrl collect2.exe 0 Build

Pls if any one can help :cry: :cry: :cry:

My Code
Code: Select all
#define recvPin 0
#define outPutPin1 1
#define outPutOin2 2

#include "IRHeaders/IRremote.h"

int main(void)

		DDRC=0b00000110;     //DDRC=(1<<2|1<<1|1<<0);
		IRrecv irrRecv(recvPin);
		decode_results results;

	while (1)
     if(irrRecv.decode(&results) )
	       case 0xFD00FF:
	   // the required action 1

	       case 0xFD807F:

	       //  the required action 2
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]