Template for the ELEC1620 End of year exam

Dependencies:   mbed

exam.h

Committer:
el16ttb
Date:
2019-03-22
Revision:
0:54721f063ac8

File content as of revision 0:54721f063ac8:

#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