header file for avrstudio4

Go To Last Post
8 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
#include
#define F_CPU 1000000
#include
#define LCD_DATA_PORT  PORTB
#define LCD_CONT_PORT  PORTD
#define LCD_RS      PD0
#define LCD_RW      PD1
#define LCD_EN      PD2
#include
#include
#include
void main(void)
{
DDRB = 0xFF;
DDRD = 0x07;
int x,y,z;
adc_init();
lcd_init();
while(1)
{
x = read_adxl335_x_value(0);
lcd_command_write(0x01);
lcd_string_write("ANKIT");
lcd_command_write(0xc0);
lcd_number_write(x,10);
y = read_adxl335_x_value(1);
lcd_command_write(0xc5);
lcd_number_write(y,10);
z = read_adxl335_x_value(2);
lcd_command_write(0xca);
lcd_number_write(z,10);
_delay_ms(1000);
}
}

this is showing 3 errors and 7 warnings[/code]

Last Edited: Sun. Apr 28, 2013 - 07:15 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
i need to know how to get the hex files of header
No, you need the header files themselves. But what makes you think that these files even exist? I don't think that any of them (adc.h, lcd.h, adxl335.h) are part of avr-gcc. If they are files you have added or gotten from somewhere, you need to tell the compiler where they are.

Regards,
Steve A.

The Board helps those that help themselves.

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

Quote:
I don't think that any of them (adc.h, lcd.h, adxl335.h) are part of avr-gcc.

that is why i am asking how to get these header files?

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

because all i have seen is that if i get the hex files of avr/lcd.h
avr/adxl335.h
and avr/adc.h

i can paste them into avr/include folder of winavr

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

Quote:
because all i have seen is that if i get the hex files of avr/lcd.h
avr/adxl335.h
and avr/adc.h
But those aren't "hex" files, they are header files. And they don't belong in the avr/include folder. And we have no idea where to get those files since we have no idea where you got the .c files that go with those .h files.

Regards,
Steve A.

The Board helps those that help themselves.

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

Google says the code probably comes from here:

http://www.ablab.in/knowledge-ce...

perhaps you could contact the author and ask for the files you need?

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

ankit0916 with 90 posts here did you ever hear about this? https://www.avrfreaks.net/index.p...

John Samperi

Ampertronics Pty. Ltd.

https://www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

Quote:
did you ever hear about this?

no js i never saw that before..thanks.