Question: hi want to create A c++ Program with Classes to make a Universal Controller which run under MBed OS on LPC1768. it should have classes.Making

hi want to create A c++ Program with Classes to make a Universal Controller which run under MBed OS on LPC1768. it should have classes.Making use of Mbed Apl and implementing polymorphism with regard to input and output through absract classes.

it should have user selected input. user selected output. user can change input or output while the program.is running.

The input could be the speaker on mbed board, LED, Servo meter, USB Device etc.But classes should be used.

Here is example of code:

#include "mbed.h" DigitalIn fire(p14); PwmOut spkr(p26); int main() { while (1) { for (float i=2000.0; i<10000.0; i+=100) { spkr.period(1.0/i); spkr=0.5; wait(0.1); } spkr=0.0; while(!fire) {} } }

but I want to implement this using classes

the input is user selectable for example if user selects lcd as input then the input is taken from user and displayed as output using classes.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!