CR6Community / Marlin

This Marlin fork has the goal of cleaning-up the source code changes for the CR-6 so it can be merged upstream. We also want to extend the functionality to make it fully functional
GNU General Public License v3.0
470 stars 83 forks source link

[FR] Add M300 (Play Tone) support #20

Closed hondrus31 closed 3 years ago

hondrus31 commented 3 years ago

Description

Since this printer is very quiet, adding a little sound at the end of the gcode it's a nice touch. I tried building the firmware with #define SPEAKER enabled in configuration.h file, but when sending an M300 to the printer, the console outputs an "unknown command", with no sound played at all.

While trying to search for some fixes among the files, the only thing I was able to understand is that there is no beeper reference in _pins_CREALITYV452.h file, if that can help.

Sebazzz commented 3 years ago

Yes, I'd like this as well. My BIQU B1 has a speaker as well and I added end-gcode when a print is finished.

Will pick this up as part of the extui porting efforts.

martinbogo commented 3 years ago

Is there a speaker in the CR6 SE?

Sebazzz commented 3 years ago

Fully implemented on extui branch

Sebazzz commented 3 years ago

Is there a speaker in the CR6 SE?

Yes, and no. There is a speaker in the screen and we can ask the screen to beep for a number of time units (8ms minimum). We can't change the pitch though.

Sebazzz commented 3 years ago

Ready for next release.