Go to advanced search

by dd17
Sat Apr 30, 2016 9:00 am
Forum: C/C++
Topic: Read GPIO without going to power user mode
Replies: 14
Views: 2563

Re: Read GPIO without going to power user mode

I used "power user mode" instead of "super user mode" which created all this fuss.
I will take care of using correct words in my further reply. Then Ptolemy and Euclid might be happy ;)
by dd17
Sat Apr 30, 2016 8:56 am
Forum: C/C++
Topic: Read GPIO without going to power user mode
Replies: 14
Views: 2563

Re: Read GPIO without going to power user mode

As said if all you want to do is manipulate the GPIO without having root privileges use /dev/gpiomem rather than /dev/mem. /dev/gpiomem was created for that very reason. For a fairly minimal code example see http://abyz.co.uk/rpi/pigpio/examples.html#Misc_tiny_gpio (The run instructions in the code...
by dd17
Sat Apr 30, 2016 6:08 am
Forum: C/C++
Topic: Read GPIO without going to power user mode
Replies: 14
Views: 2563

Read GPIO without going to power user mode

Hi, I want to read the GPIO port in my 'C' program. 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. Could anyone please tell me if there is some alternate way of reading the GPIO ports in 'C' without any need of going to pow...
by dd17
Sun Apr 24, 2016 4:10 am
Forum: General discussion
Topic: Coding PI : Which programming language to use
Replies: 37
Views: 7541

Re: Coding PI : Which programming language to use

For the sake of curiosity why don't you just try it? What is it you actually want to do? Does it really mater if your finished program takes 2% of CPU time in C or 20% in Python? Do you really want to spend hours crafting a C version of something that can be written in a minute in Python? I want to...
by dd17
Sat Apr 23, 2016 6:12 pm
Forum: General discussion
Topic: Coding PI : Which programming language to use
Replies: 37
Views: 7541

Coding PI : Which programming language to use

Hi,

Assuming that an algorithm can be implemented using C, Python and Linux/BASH, which programming language is best suited in terms of runtime consumption?

Thanks,
Regards,
Debashish

Go to advanced search