Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Can someone tell me the difference between a .h file and a .cpp file. I'd like to write my own library for an SPI device and I suppose the library should be quite mainstream. I have a lot of experience with VBA and have taken courses in Java, Fortran and C and OOP so I can hack this and that. What other file types might I find in the mbed compiler ? The library I want to write will be for a DS1307 real time clock and I dont really know how to structure it all. A pointer (no pun intended) to an online resource would be appreciated.