dd17 wrote:
I want to read the GPIO port in my 'C' program.
ok, so I presume that you are a C programmer, or shortly plan to be one... good !
dd17 wrote:
I have seen that there are some functions provided by WiringPi but in order to run the code, I need to use power user mode.
What do you mean by power user mode? Are you suggesting that you want to be a casual software engineer using C to access the hardware engineering of the RPi (using C) but that you do not want to be a 'power' user? Or, am I misunderstanding you (its happened before)
dd17 wrote:
Could anyone please tell me if there is some alternate way of reading the GPIO ports in 'C' without any need of going to power user mode.
Well, when Ptolemy asked Euclid for an easier way to learn Geometry Euclid replied, "μή εἶναι βασιλικήν ἀτραπόν ἐπί γεωμετρίαν" ehem, "There is no royal road to geometry!"
And I will tell you, there is no way to use C without being a power user... so get a good book and ask lots of questions right here.
Edit: on the other hand, maybe you are referring to super user mode , sudo ?
That's a horse of another color...
Did you mean super user? sudo ?
