Tamas Titusz Ban
/
ELEC1620_ExamTemplate_2019
Template for the ELEC1620 End of year exam
Diff: exam.h
- Revision:
- 0:54721f063ac8
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/exam.h Fri Mar 22 13:11:07 2019 +0000 @@ -0,0 +1,31 @@ +#ifndef EXAM_H_ +#define EXAM_H_ + +#include "mbed.h" +#include "ShiftReg.h" +#include "N5110.h" +#include "TestAdmin.h" + +void Task1(TestAdmin &tester, PwmOut &r_led, DigitalIn &button_a); + +void Task2(TestAdmin &tester, PwmOut &r_led, PwmOut &g_led, PwmOut &b_led, DigitalIn &button_a, DigitalIn &button_b, DigitalIn &button_c); + +void Task3(TestAdmin &tester, PwmOut &b_led, DigitalIn &button_a, DigitalIn &button_b); + +void Task4(TestAdmin &tester, AnalogIn &pot_1); + +void Task5(TestAdmin &tester, PwmOut &r_led, PwmOut &g_led, AnalogIn &ldr); + +void Task6(TestAdmin &tester, PwmOut &r_led, PwmOut &g_led, PwmOut &b_led, AnalogIn &pot_0, AnalogIn &pot_1, AnalogIn &pot_2); + +void Task7(TestAdmin &tester, PwmOut &r_led, DigitalIn &button_a); + +void Task8(TestAdmin &tester, BusOut &leds); + +void Task9(TestAdmin &tester, ShiftReg &shift); + +void Task10(TestAdmin &tester, ShiftReg &shift, AnalogIn &joy_v, AnalogIn &joy_h); + +void Task11(TestAdmin &tester, ShiftReg &shift, DigitalIn &button_a, DigitalIn &button_b); + +#endif