Digital op's aren't object oriented, why?

Digital op's, as well as analog ones, are not object oriented, does anyone know why?

Some libraries are object oriented: serial, wire, servo, etc, while others aren't? Is it for historical reasons or so?

Your question implies that Object Oriented code is always better. You are certainly entitled to that view, but I for one don't agree.

...R

fjrg76:
Digital op's, as well as analog ones, are not object oriented, does anyone know why?

Same reason you failed to use "op" correctly. Why bother? The intent is clear either way.

(The actual reason is very likely "historical artifact".)

The reason for this design may be found in Wiring by Hernando Barragán.

There are several OOP variants of handling the Digital Pins (aka GPIO). They are often both faster (X10-100), easier to understand and better integrated. Here is my favorite.

If you are looking for a fully OOP platform for AVR based Arduino programming Cosa might be an alternative.

Cheers!