Go Down

Topic: Arduino .h files and trying to use them on a bare bones atmega1284?  (Read 1 time) previous topic - next topic


I am currently working on a project that interfaces with two RX/TX communication devices , and one SPI communication device. The SPI device which is an SD card and one of the RX/TX device is a ping sensor. The ping sensor has Arduino libraries help write a program to interface with the hardware. I am not using an Arduino Development but just a bare bones atmega1284p microcontroller. Is it possible to flash a hex file that contains a program and the library (.h) to be used in the microcontroller? 

This is the GitHub for the ping sensor that contains code to help with interfacing with the device : 

I am using atmelstudio 7 to program this AVR microcontroller. This a tutorial I have been trying to follow: 


The things you wrote don't make any sense. You can't flash a .h file. You can compile a program that #includes a .h file, but the .h file itself is not a program.

Please provide a detailed description of what you are trying to accomplish, as well as links to any code or tutorials you might be using.


Are you using the MightyCore files for the 1284P? Takes away the need to mess with lower level files.

Designing & building electrical circuits for over 25 years.  Screw Shield for Mega/Due/Uno,  Bobuino with ATMega1284P, & other '328P & '1284P creations & offerings at  my website.

Go Up