From ef8daf1a2ad7b1632df0e5d3667b4a24f9336ea7 Mon Sep 17 00:00:00 2001 From: Sam Hos Date: Tue, 6 May 2025 16:22:31 +0200 Subject: [PATCH] styling --- .../interface_application_programming.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/Assignments/week_14_interface_application_programming/interface_application_programming.md b/docs/Assignments/week_14_interface_application_programming/interface_application_programming.md index ed18ed5..72d852d 100644 --- a/docs/Assignments/week_14_interface_application_programming/interface_application_programming.md +++ b/docs/Assignments/week_14_interface_application_programming/interface_application_programming.md @@ -425,7 +425,7 @@ This is the full code of the screen. The schematic for the pcb can be found in [ ## Turning it into a library So I asked Copilot (Claude 3.7 Sonnet) to turn this above into a library. Using this prompt "turn the screen thing into a library so i can easily create menus and stuff" and using the context from my files it came up with this broken and oversized mess. -??? Failure.cpp +??? Failure ```cpp #ifndef OLED_MENU_H #define OLED_MENU_H @@ -518,7 +518,7 @@ So I asked Copilot (Claude 3.7 Sonnet) to turn this above into a library. Using #endif // OLED_MENU_H ``` -??? Failure.h +??? Failure ```cpp #include "OLEDMenu.h" @@ -733,7 +733,7 @@ So I asked Copilot (Claude 3.7 Sonnet) to turn this above into a library. Using Then I asked it to rewrite it and make it simpler and to add in a way to call functions using these menu tabs and to use the original graphics. Then it came up with this -??? AI generated.cpp +??? AIgenerated ```cpp #include "MenuSystem.h" #include "MenuGraphics.h" @@ -896,7 +896,7 @@ Then it came up with this ``` -??? AI generated.h +??? AIgenerated ```cpp #ifndef MENU_SYSTEM_H #define MENU_SYSTEM_H @@ -959,7 +959,7 @@ Then it came up with this ``` Which worked really well with my code -??? My code +??? example ```cpp #include #include