Skip to content

Audio enable pin required for some cheap yellow displays. #28

@echo-lalia

Description

@echo-lalia

In order to get audio output on my CYD I had to add the following lines to the setup function in main.cpp:

  #ifdef AUDIO_ENABLE_PIN
  // Enable audio (if required)
  pinMode(AUDIO_ENABLE_PIN, OUTPUT);
  Serial.printf("Enabling audio by setting Pin %d to %d", AUDIO_ENABLE_PIN, AUDIO_ENABLE_VAL);
  digitalWrite(AUDIO_ENABLE_PIN, AUDIO_ENABLE_VAL);
  #endif

Then I added this to the build_flags for my CYD:

  -DAUDIO_ENABLE_PIN=GPIO_NUM_4
  -DAUDIO_ENABLE_VAL=LOW

Hopefully this helps someone out 😁

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions