seeeduino mega : 16 extra digital i/o

Ok, sounds tedious, but wouldn’t it be possible to write a function to take out the tedium? I have no idea how to do what you just said, but it seems like if it’s possible it should be possible to make it a bit more user friendly through a library extension, yeah?