hey,
is it possible by Mono / C# to #include header files (e.g., #include “MonoDefs.h”)?
Having his one could pre-define in here:
// filename: "MonoDefs.h"
using System;
using MonoBrickFirmware;
using MonoBrickFirmware.Movement;
using MonoBrickFirmware.Sensors;
using MonoBrickFirmware.Display;
using System.Threading;
using System.Reflection;
using System.Resources;
void init() {
Motor m01 = new Motor(MotorPort.OutA);
Motor m02 = new Motor(MotorPort.OutB);
Motor m03 = new Motor(MotorPort.OutC);
Motor m04 = new Motor(MotorPort.OutD);
Lcd lcd1 = new Lcd();
}
and in the main program by
#include "MonoDefs.h"
//...
init();
everything would have been initialized
Follow