25.06.2015, 16:38   #16
Gorynch
 
  Gorynch
 
: 22.04.2009
: 36
:
: 77, 97, 99, 177
: 2005\Nissan\X-Trail
: 775
Gorynch is a splendid one to beholdGorynch is a splendid one to beholdGorynch is a splendid one to beholdGorynch is a splendid one to beholdGorynch is a splendid one to beholdGorynch is a splendid one to beholdGorynch is a splendid one to behold

, -
PHP :
void loop() {
    if (
Serial.available() > 0) {
        
incomingByte Serial.read();
        if (
incomingByte == 1) {
            do 
somthing ....
        }
        if (
incomingByte == 2) {
            do 
somthing else ....
        }
    }

switch,

mcp2515 ,
__________________
, ,
Gorynch