Skip to content

[2.0.x] Add tone support for Due#9807

Merged
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-2.0.xfrom
thinkyhead:bf2_due_tone
Feb 25, 2018
Merged

[2.0.x] Add tone support for Due#9807
thinkyhead merged 1 commit intoMarlinFirmware:bugfix-2.0.xfrom
thinkyhead:bf2_due_tone

Conversation

@thinkyhead
Copy link
Member

This is a quick-and-dirty implementation of tone supporting a single pin for the Due platform. This will allow you to play single tones on a Piezo speaker. It uses index 6 in the interrupt table.

@thinkyhead thinkyhead added PR: Improvement T: HAL & APIs Topic related to the HAL and internal APIs. labels Feb 25, 2018
@thinkyhead thinkyhead force-pushed the bf2_due_tone branch 2 times, most recently from 4cd6d95 to fcf6273 Compare February 25, 2018 11:01
@thinkyhead thinkyhead merged commit f2c0ed1 into MarlinFirmware:bugfix-2.0.x Feb 25, 2018
@thinkyhead thinkyhead deleted the bf2_due_tone branch February 25, 2018 16:48
@bwgeez02
Copy link

bwgeez02 commented Feb 25, 2018

I'm getting a compile error.

Arduino: 1.9.0-beta (Windows 7), Board: "Arduino Due (Programming Port)"

sketch\src\HAL\HAL_DUE\usb\usb_task.c.o: In function `HAL_init':

sketch\src\HAL\HAL_DUE\usb/usb_task.c:259: undefined reference to `toneInit'

collect2.exe: error: ld returned 1 exit status

Multiple libraries were found for "LiquidCrystal.h"
 Used: C:\Users\Brian\Documents\Arduino\libraries\LiquidCrystal
 Not used: K:\arduino-1.9.0-beta-windows\arduino-PR-beta1.9-BUILD-37\libraries\LiquidCrystal
exit status 1
Error compiling for board Arduino Due (Programming Port).

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
[Configuration.zip](https://github.com/MarlinFirmware/Marlin/files/1756592/Configuration.zip)
[Configuration_adv.zip](https://github.com/MarlinFirmware/Marlin/files/1756593/Configuration_adv.zip)

@thinkyhead
Copy link
Member Author

Now patched, @bwgeez02

@bwgeez02
Copy link

Thanks! Sorry about the revert. I'll be more careful now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR: Improvement T: HAL & APIs Topic related to the HAL and internal APIs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants