multiple digital outputs via max/msp

hello. I am trying to control multiple digital outputs from Max/MSP. I got the dimmer tutorial to work fine haha. I also used to do alot of work with Maxuino but I do not own Max 5 and since the arrival of UNO its all gone to hell. So, I'm trying to code my own "Maxuino" but in a very paired down fashion. Any pointers would help. I scoured the forums and didn't find out too much. I copied and pasted some code, and I got only mediocre results.
Thanks
-M