Hi,
I will try to use Ardulino Mega for lighting (VR, etc ..) lighting
I use the Program (Sumo.exe) Spindizzi is the creator - Thanks
So far we work, only one game (outruners) MAME
And it works badly, only the internal diode (TX) still flashes for all outputs from this game.
I uploaded this program to Ardulin, the only thing I found on the internet,
----------------------------------------------------------------------------------------------
void setup() {
Serial.begin(9600);
pinMode(1, OUTPUT);
pinMode(2, OUTPUT);
pinMode(3, OUTPUT);
pinMode(4, OUTPUT);
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(8, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(54, INPUT);
pinMode(55, OUTPUT);
}
void loop() {
while (Serial.available() > 0) {
int pin = Serial.parseInt();
int value = Serial.parseInt();
if (Serial.read() == 'x') {
digitalWrite(pin, value);
Serial.println();
}
}
}
--------------------------------------------------------------------------
Please can anyone advise how to adjust it to work properly.
I have Ardulino for 3 days and I'm just learning ..
