Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
main.cpp
- Committer:
- el17cd
- Date:
- 2019-02-22
- Revision:
- 4:759a5c34e239
- Parent:
- 3:2e31dfcb712a
- Child:
- 5:54d3b36fec2c
File content as of revision 4:759a5c34e239:
/*
ELEC2645 Embedded Systems Project
School of Electronic & Electrical Engineering
University of Leeds
Name: Christopher Doel
Username: el17cd
Student ID Number: 201146223
Date: 22/02/19
*/
#include "mbed.h"
#include <vector>
#ifndef FACE_H
#define FACE_H
#include "Face.h"
#endif
#include "Rasturizer.h"
#include "Cube.h"
int main()
{
Rasturizer renderer;
Cube cube(30,30, 1,10);
int i = 0;
while(1) {
renderer.clear();
if (i == 6)
i = 0;
renderer.drawFace(cube.getFace(i));
renderer.refresh(); // refresh the LCD so the pixels appear
wait_ms(1000/1); // this gives a refresh rate of 10 frames per second
i++;
}
}