• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Problem with Green LED on ESP CYD

Q&A Forum › Category: ESP32 › Problem with Green LED on ESP CYD
0 Vote Up Vote Down
Gary Leslie asked 11 months ago

Hi Rui and Sarah. I am really enjoying your new graphical display book. I seem to be having a problem controlling the green LED on the ESP CYD board. I was modifying the basic button sketch to include a toggle switch to turn the green LED on and off. When the toggle was pressed the sketch output the relevant log info ie
toggle_switch_event_handler: State: On CYD_Button_Two_States_and_switch.ino:100
  However it would not turn on. I tried changing the pio pin number  from 16 to 4 ie green to red and the red LED worked perfectly with the same sketch. I then tried a simple sketch to directly set up pin 16 to be an output and then using digitalWrite and a delay turned the LED on and off. This worked fine and the Green LED duly flashed a expected. Is pin 16 being used by something else when controlling the display? 

Question Tags: ESP32 CYD 2432S028R Green LED not working with display widgit
1 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 11 months ago

Hi.
Yes. 
GPIO 16 is also used as MISO for the display. So, you’ll have troubles trying to control both simultaneously.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.