you can create your own the library for that. However, the MCU will take some time to process, it means that the power will be wasted. Atmege( attiny, or atxmega) use logic switch to turn on or turn off the bit. The reason is that it is already built in assembly instruction set so that MCU can run much faster because of having hardware support.