I have created a class where the constructor accepts 3 arguments for the DIN, CLK & CS pins. I am creating more than one instance of this class.
module myModule1(4,5,6);
module myModule2(7,8,9);
myModule1.displayCharacter(22);
myModule2.displayCharacter(28);
I would like to create an array of these objects.
module myModules[2];
myModules[0].displayCharacter(22);
myModules[1].displayCharacter(28);
But I don't know how I would pass the arguments needed by the constructor.