Hi,
I have the problem with passing two dimensional array to library function.
How to do it correctly?
Test.h
class Test
{
public:
Test();
void doTest(int** Input);
};
Test.cpp
Test::Test()
{
}
void Test::doTest(int** Input)
{
int x = Input[0][0];
}
Test.ino
#include "Test.h"
Test test();
void setup() {
int Input[11][4]= {
{ 1, 0, 0, 0 },
{ 1, 0, 0, 0 },
{ 1, 0, 0, 0 },
{ 0, 1, 0, 0 },
{ 0, 1, 0, 0 },
{ 0, 1, 0, 0 },
{ 0, 0, 1, 0 },
{ 0, 0, 1, 0 },
{ 0, 0, 1, 0 },
{ 0, 0, 0, 1 },
{ 0, 0, 0, 1 }
};
test.doTest(Input);
}
void loop() {
}