Part One of my Project Course. Implementation of simple I/O and a custom defined protocol over UDP/IP.
Dependencies: C12832 LM75B mbed EthernetInterface mbed-rtos
buzzer_music.h
- Committer:
- bertgereels
- Date:
- 2018-02-26
- Revision:
- 0:88d3b9015f7c
- Child:
- 1:b5c534165dfe
File content as of revision 0:88d3b9015f7c:
#pragma once #include "mbed.h" #include "master.h" #define MAX_ARRAY_LENGTH 17 namespace ProjectOne{ class BuzzerMusic{ public: BuzzerMusic(PinName speakerPin=p26); void playMusic(int x, int y); private: const static int frequencies[MAX_ARRAY_LENGTH]; const static int lengths[MAX_ARRAY_LENGTH]; const static int delays[MAX_ARRAY_LENGTH]; PwmOut speaker; }; };