ELEC2645 (2018/19) / Mbed 2 deprecated el17cd

Dependencies:   mbed

Revision:
15:8fbbdefbe720
Parent:
14:885915260e25
Child:
16:64cd7bc094f9
--- a/Rasturizer/Rasturizer.cpp	Sun Mar 31 13:55:51 2019 +0000
+++ b/Rasturizer/Rasturizer.cpp	Sun Mar 31 14:56:55 2019 +0000
@@ -4,8 +4,7 @@
 N5110 lcd(PTC9,PTC0,PTC7,PTD2,PTD1,PTC11);
 
 Rasturizer::Rasturizer(){
-    lcd.init();
-    fov = 50;
+
     /*double tempPoints[4][3] = {{43, 2.5, 30}, {43, 2.5, 200}, {43, -2.5, 200}, {43, -2.5, 30}};
     for(int vertex = 0; vertex < 8; vertex++){
         for(int axis = 0; axis < 3; axis++){
@@ -16,6 +15,11 @@
     edge.setVisible(true);*/
 }
 
+void Rasturizer::init(){
+    lcd.init();
+    fov = 50;
+}
+
 double Rasturizer::xTo2D(double x, double z){
     return x * (fov/z) + 42;
 }