How to disable landscape mode

Oregon 750 allows landscape and portrait modes.
Is it possible to force portrait mode by code?

Thank you!