Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to code the G26/36/0 to make a extra LED to follow build in red led? #1

Open
devokeon opened this issue Nov 17, 2022 · 2 comments

Comments

@devokeon
Copy link

hi,using the few hour to make it running,is happy can see you project in here,
i need to add a extra red led to stick in front camera , let the interviewer know witch camera is on program.
how do i add the code ? thanks.

@simonhaenisch
Copy link
Member

Hey sorry, I have no idea but you can probably google some tutorials for M5StickC with an extra LED. You usually have to set the pin up for GPIO, e.g. pinMode(26, OUTPUT) and then you can control it with digitalWrite(26, HIGH) (on) and digitalWrite(26, LOW) (off) in the program.

There's a link to the pin map on https://github.com/m5stack/M5StickC, and there's this file Config.h which defines a bunch of the default pins.

@devokeon
Copy link
Author

hi thanks for you replay,
i have tired few time to active the GPIO 26,when the CAM1 programe is on live the led is no light up,
when on CAM2 to CAM8 in programe live , the led will light out.

i will try it ,when is working will upload the code at here,
second led in front is much important to interviewer.

have a good day.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants