Skip to content

Struggling with LED on GPIO output #140

Description

@StemsMusicMan

EDIT: fixed! Needed to create a folder within my profile folder to store the GPIO.cfg file. Rookie error!

Hi Ken,

Thanks for your amazing work. I've got an exciting project that will be going live in a couple of weeks fingers crossed that we're using Pi Presents for. I can fill you it on that very soon!

In the meantime, I'm struggling with getting an LED to light and I can't see what I'm doing wrong. I've set up a GPIO.cfg within my profile's folder. All the inputs (basically all switches) are operating correctly.

I want to switch on an LED as soon as the profile runs (it's set to run on boot up). In my GPIO.cfg I've specified pin 23 like this (though I have tried others to troubleshoot):

[P1-23]
direction = out
name = blueled

Within my menushow.json file right at the top I've got:

{
"issue": "1.3.5",
"tracks": [
{
"animate-begin": "0 blueled state on",
"animate-clear": "no",
"animate-end": "",

and then background etc and all my media listed underneath.....

My understanding is that when the profile is ran, the animate-begin function will make the 'blueled' logical name turn 'on', and thereby create +3.3v at all the pins in GPIO.cfg named blueled, i.e. pin 23.

I then want the LED to remain lit until the Pi is shutdown, hence why the animate-clear function is still 'no'.

I think I might have missed something. Is there an extra step or have I got it all wrong. Any help much appreciated!

All the best,
Steve

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions