C# SerialPort e println nel setup()


salve,
ho un problema: sia nel setup() che nel loop() ho dei serial.println() ( ovviamente ho fatto il begin prima di tutto) ma quando istanzio l'oggetto serialport in c#

code: [select]
serialport1 = new serialport();
serialport1.portname = "com1"
serialport1.baudrate = 9600;
serialport1.datareceived += serialport1_datareceived;
serialport1.open();


mi printa solamente cosa ho nel loop() mentre usando programmi tipo putty vedo anche cosa printa nel setup()... come mai?

con quel pezzo brutale ? senza metterlo in una funzione ad evento che attende sulla seriale ? 


Arduino Forum > International > Italiano > Software (Moderator: leo72) > C# SerialPort e println nel setup()


arduino

Comments