10 MHz crystal system remote global g exec transmit --------------------------------------------------------- -- Buttons are connected to pins 1 to 7 -- A LED is connected to pin 0 -- (lighs whenever a button is pressed) -- Zigbee unit's RX pin connected to pin 10 -- -- If a button is pressed, it gives 0 volts to its pin --------------------------------------------------------- process transmit mess t10ms = 80000000/100 begin ( 0 )setout ( 10 )setout ( 11 , 10 , )z.init :loop ina X254 &254 ->mess if(mess #0){ ( 1 , 1 , )outpins } else { ( 0 , 1 , )outpins } ( mess )z.bsend t10ms wait >loop load from(zig.mpo) *z.init *z.bsend \