Adafruit_BBIO input pull up/down

Good evening,

I am planning to connect optocouplers to the inputs pins of my BBB.

This would mean that the input of the BBB is HIGH, while the input is really LOW.

Is there a way that you can invert this signal (software wise)?

This should have something to do with the pull up or pull down setting.

Can anyone advise please?