Hello
I have a question !
When you program in Java for exemple :
you can write this to create & use a object
TFT_4DGL name = new TFT_4DGL(p13,p14,P15);
name.baudrate(128000);
oneObject instance= new oneObject(name);
...
With Mbed we write that :
TFT_4DGL name(p13,p14,p15);
name.baudrate(128000);
oneObject instance= new oneObject(name);
But how get the instance of this object to manipulate into a other object ?
When I write that :
TFT_4DGL _name;
..
Constructor(TFT_4DGL name){
_name = name;
_name.baudrate(128000);
}
The error is " TFT_4DGL " have no default constructor
When i write that :
TFT_4DGL * _name;
..
Constructor(TFT_4DGL * name){
_name = name;
_name.baudrate(128000);
}
The error is : "Expression must have class type (E153) "
You understand ???
Thanks
Hello
I have a question !
When you program in Java for exemple :
you can write this to create & use a object
With Mbed we write that :
But how get the instance of this object to manipulate into a other object ? When I write that :
The error is " TFT_4DGL " have no default constructor
When i write that :
The error is : "Expression must have class type (E153) "
You understand ???
Thanks