I'm trying to learn about the I2C protocol and for learning purposes wanted to write my own I2C implementation for the atmega micro-controller. Since it's hard to debug, I decided to write the 'draft' on raspberry and then re-write it for the micro-controller.
The problem I'm facing now is that I don't understand how can I simply write/read from the GPIO pin at the lowest level possible. Is there a 'basic' module, which will allow me to access GPIO pins directly (through some kind of system file)?
Basically I want to program Raspbery GPIO pins the same way I would program a micro-controller.