Please help,
Going a bit crazy thismorning,
I want to split out sone code for a sensor (qiute sensible I thought)
but i keep getting an error,
Even with NO code in the seperate files,
What am I doing wrong,
BTW: sompthing very simmilar on a much older project works :(
main.c
#include "mbed.h"
#include "DPot.h"
DigitalOut myled(LED1);
int main() {
Dpot_init();
while(1) {
myled = 1;
wait(0.2);
myled = 0;
wait(0.2);
}
}
dpot.c
#include "mbed.h"
#include "CapSens.h"
// I2C DPot_Port (p28,p27);
void DPot_init(void)
{
//
}
dpot.h
#ifndef _DPot_h_
#define _DPot_h_
void DPot_init(void);
#endif // _DPot_h_
Please help, Going a bit crazy thismorning,
I want to split out sone code for a sensor (qiute sensible I thought) but i keep getting an error,
Even with NO code in the seperate files,
What am I doing wrong,
BTW: sompthing very simmilar on a much older project works :(
main.c
dpot.c
dpot.h