Didn't know how to edit last post so:

Use GPIO.# instead of PORTB.# per pg. 35 of data sheet.