-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RMT symbols and musical buzzer example bugfix for ESP32 (#354)
* rmt: wrap rmt_item32_t in a newtype This makes it much easier to use `TxRmtDriver::start_iter` and `TxRmtDriver::start_iter_blocking` (#113). * examples/rmt_musical_buzzer: fix for ESP32 Possibly broken by #97, possibly never worked. The ESP-IDF repo specifically excludes the ESP32 from the RMT musical buzzer demo because its RMT unit lacks hardware looping. Before this change, the demo would simply hang when trying to play the second note possibly because the ESP32 RMT unit does not support asynchronous stopping. As an added bonus, this example is now much easier to modify to experiment with 1-bit chiptune synthesis by making every symbol (cycle) accessible in the ISR iterator. * rmt: remove Pulse::into_rmt_item in favor of Symbol::new Also, factor Pulse pairs into function arguments for ease of use.
- Loading branch information
Showing
2 changed files
with
106 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters