TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: EWHOLZ@GMAIL.COM
from: THE NATURAL PHILOSOPHER
date: 2018-02-16 09:13:00
subject: Re: How to reset the GPIO

On 15/02/18 19:10, ewholz@gmail.com wrote:
> Hello Group Members,
>
> I am a new user/programmer for the Raspberry Pi.
> I have found a pwm program in python that dims and brights
> an led. I have also found a program in C that does the
> same thing - when run as sudo.
>
> When I exit the C program, the led stays lit.
> I have a program in python that clears up the bus using GPIO.cleanup()
>
> This works fine, and turns the led off, etc.
>
> I am trying to write/find an equivalent program in C that
> will cleanup the gpio the same way.
>
> Any tips or links will help

https://elinux.org/RPi_GPIO_Code_Samples#C

>
> Thanks
>
> ewholz
>


--
The biggest threat to humanity comes from socialism, which has utterly
diverted our attention away from what really matters to our existential
survival, to indulging in navel gazing and faux moral investigations
into what the world ought to be, whilst we fail utterly to deal with
what it actually is.

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.