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.
Diff: Startup/startup.cpp
- Revision:
- 7:33cb5f2db1ee
- Child:
- 10:258a1eca02cc
diff -r 3a4e9ce12911 -r 33cb5f2db1ee Startup/startup.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Startup/startup.cpp	Tue May 05 14:32:04 2020 +0000
@@ -0,0 +1,33 @@
+#include "mbed.h"
+#include "startup.h"
+
+//objects
+LUTs lut;
+
+
+//constructor/destructor
+startup::startup()
+{
+}
+startup::~startup()
+{
+}
+
+//methods
+void startup::initialise(N5110 &lcd, Gamepad &pad)
+{
+    pad.init(); //initiate Gamepad
+    printf("Initialising Pad\n");
+    lcd.init(); //intitates screen
+    lcd.clear();
+    lcd.setContrast(0.5); //contrast setting
+    lcd.inverseMode(); //puts screen in -ve
+    //Prints CART SYNTH to display
+    lcd.printString("CART",12,2);
+    lcd.printString("SYNTH",32,3);
+    lcd.refresh();
+    lut.sin_wavetable(); //generates wavtable array
+    wait_ms(1000); //timer to allow theme to play out
+    lcd.clear();
+    lcd.refresh(); //sets clear screen
+}