Giter Club home page Giter Club logo

Comments (3)

davidramiro avatar davidramiro commented on May 27, 2024

Uncomment line 1538 in Configuration.h.

//
// STARTUP CHIME
//
// Play a (non-earpiercing) startup chime on startup/serial connection
// of the Trigorilla board
//
//#define STARTUP_CHIME

I altered the sound, I found the old one to be way too high pitched 🙂

from marlin-ai3m.

shaddow501 avatar shaddow501 commented on May 27, 2024

Thanks, do you maybe know how to add lack of filament sound?

from marlin-ai3m.

shaddow501 avatar shaddow501 commented on May 27, 2024

Ok Solevd it

Took the music.h & music.cpp file and integrated it into this firmware
https://github.com/ANYCUBIC-3D/I3-MEGA/blob/305b0a041e99b0c964d1f7b20a15ae45da92718e/Marlin_TFT_CR_V1.1.1/music.h

https://github.com/ANYCUBIC-3D/I3-MEGA/blob/305b0a041e99b0c964d1f7b20a15ae45da92718e/Marlin_TFT_CR_V1.1.1/music.cpp

integrated he power up sound in: marlin_main.cpp

+#include "music.h"

At line 15393
lcd_init();
PowerOnMusic();
lcd_reset_status();

With the filamentlack sound I have added in: anycubicTFT.cpp

  • include "music.h"

and at line; 714 added the filament sound

void AnycubicTFTClass::FilamentRunout()
{
#if ENABLED(ANYCUBIC_FILAMENT_RUNOUT_SENSOR)
FilamentTestStatus=READ(FIL_RUNOUT_PIN)&0xff;

if(FilamentTestStatus>FilamentTestLastStatus) {
  // filament sensor pin changed, save current timestamp.
  const millis_t fil_ms = millis();
  static millis_t fil_delay;

  // since this is inside a loop, only set delay time once
  if (FilamentSetMillis) {
      **FilamentLack();**
    #ifdef ANYCUBIC_TFT_DEBUG
      SERIAL_ECHOLNPGM("DEBUG: Set filament trigger time");
    #endif
    // set the delayed timestamp to 3000ms later
    fil_delay = fil_ms + 3000UL;
    // this doesn't need to run until the filament is recovered again
    FilamentSetMillis=false;
  }

from marlin-ai3m.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.