#N canvas 41 171 577 460 10; #X obj 451 21 import io; #X obj 213 388 wiiremote; #X msg 168 207 connect; #X msg 185 233 disconnect; #X msg 286 237 motionsensor \$1; #X obj 286 215 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 406 215 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X msg 406 237 irsensor \$1; #X obj 64 254 metro 100; #X obj 64 233 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X msg 376 290 getbatterylevel; #X msg 376 310 getledstatus; #X msg 376 330 getexpansionstatus; #X msg 129 283 bang; #X text 49 49 - Use the Bluetooth Setup Assistant to setup the WiiRemote with your computer (only required for the first use).; #X text 49 79 - Press the "Sync" button on the WiiRemote \, four LEDs will start blinking.; #X text 49 109 - Click on the [connect( message \, the LEDs will stop blinking once its connected; #X text 49 139 - Start the [metro] to get updates from [wiiremote] ; #X connect 2 0 1 0; #X connect 3 0 1 0; #X connect 4 0 1 0; #X connect 5 0 4 0; #X connect 6 0 7 0; #X connect 7 0 1 0; #X connect 8 0 1 0; #X connect 9 0 8 0; #X connect 10 0 1 0; #X connect 11 0 1 0; #X connect 12 0 1 0; #X connect 13 0 1 0;