Skip to content

Commit 7d98925

Browse files
committed
Clean up
1 parent 5462c37 commit 7d98925

File tree

505 files changed

+13
-83650
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

505 files changed

+13
-83650
lines changed

BuzzerExample/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD 17)
77

88
# Initialise pico_sdk from installed location
99
# (note this can come from environment, CMake cache etc)
10-
set(PICO_SDK_PATH "/mnt/c/Users/champ/Documents/Programming/pico-sdk")
10+
set(PICO_SDK_PATH "/home/coursework/comp2215/pico-sdk")
1111

1212
# Pull in Raspberry Pi Pico SDK (must be before project)
1313
include(pico_sdk_import.cmake)

JukeBoxSD/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD 17)
77

88
# Initialise pico_sdk from installed location
99
# (note this can come from environment, CMake cache etc)
10-
set(PICO_SDK_PATH "/mnt/c/Users/champ/Documents/Programming/pico-sdk")
10+
set(PICO_SDK_PATH "~/coursework/comp2215/pico-sdk")
1111

1212
# Pull in Raspberry Pi Pico SDK (must be before project)
1313
include(pico_sdk_import.cmake)

JukeBoxSD/hw_config.c

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ void spi1_dma_isr();
4242
// selects.
4343
static spi_t spis[] = { // One for each SPI.
4444
{
45+
// Changed these values to work with the maker pi board.
4546
.hw_inst = spi1, // SPI component
4647
.miso_gpio = 12, // GPIO number (not pin number)
4748
.mosi_gpio = 11,

JukeBoxSD/sample.h

-6,655
This file was deleted.

pico-fractal/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD 17)
77

88
# Initialise pico_sdk from installed location
99
# (note this can come from environment, CMake cache etc)
10-
set(PICO_SDK_PATH "/mnt/c/Users/champ/Documents/Programming/pico-sdk")
10+
set(PICO_SDK_PATH "~/coursework/comp2215/pico-sdk")
1111

1212
# Pull in Raspberry Pi Pico SDK (must be before project)
1313
include(pico_sdk_import.cmake)

pico-fractal/pico-fractal.c

-16
Original file line numberDiff line numberDiff line change
@@ -170,24 +170,8 @@ int main()
170170
sleep_ms(1000); // Give the Pico some time to think...
171171
ST7735_Init(); // Initialise the screen
172172

173-
174-
// Fill with black
175-
//ST7735_FillScreen(ST7735_BLACK);
176173
mandelbrot();
177174
//ship();
178175

179-
/*
180-
for(int x = 0; x < 80; x++){ // x axis a is 0
181-
ST7735_DrawPixel(80-x, 0, ST7735_WHITE);
182-
sleep_ms(10);
183-
} // y=0 is m, m-->A
184-
185-
for(int y = 0; y < 160; y++){
186-
ST7735_DrawPixel(0, 160-y, ST7735_WHITE);
187-
sleep_ms(10);
188-
} // x=0 is m, m-->Z
189-
*/
190-
191-
192176
sleep_ms(20000); // Sleep for 20 seconds
193177
}

pico-tuner/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set(CMAKE_CXX_STANDARD 17)
77

88
# Initialise pico_sdk from installed location
99
# (note this can come from environment, CMake cache etc)
10-
set(PICO_SDK_PATH "/mnt/c/Users/champ/Documents/Programming/pico-sdk")
10+
set(PICO_SDK_PATH "~/coursework/comp2215/pico-sdk")
1111

1212
# Pull in Raspberry Pi Pico SDK (must be before project)
1313
include(pico_sdk_import.cmake)

picosd/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ set(CMAKE_CXX_STANDARD 17)
77

88
# Initialise pico_sdk from installed location
99
# (note this can come from environment, CMake cache etc)
10-
set(PICO_SDK_PATH "/mnt/c/Users/champ/Documents/Programming/pico-sdk")
10+
# Change this to where you store your pico sdk
11+
set(PICO_SDK_PATH "~/coursework/comp2215/pico-sdk")
1112

1213
# Pull in Raspberry Pi Pico SDK (must be before project)
1314
include(pico_sdk_import.cmake)

picosd/SDCard.c

+5-7
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33
#include "ff.h"
44
#include "f_util.h"
55
#include "hw_config.h"
6-
#include "rtc.h"
76

7+
/**
8+
* Based on https://github.com/carlk3/no-OS-FatFS-SD-SPI-RPi-Pico/blob/master/simple_example/simple_example.cpp
9+
*/
810
int main() {
911
stdio_init_all();
10-
time_init();
11-
12-
puts("Hello, world!");
1312

1413
// See FatFs - Generic FAT Filesystem Module, "Application Interface",
1514
// http://elm-chan.org/fsw/ff/00index_e.html
@@ -19,15 +18,15 @@ int main() {
1918
FRESULT fr = f_mount(&pSD->fatfs, pSD->pcName, 1);
2019
if (FR_OK != fr) panic("f_mount error: %s (%d)\n", FRESULT_str(fr), fr);
2120

22-
// Create a file.
21+
// Open.
2322
FIL fil;
2423
const char* const filename = "filename.txt";
2524
fr = f_open(&fil, filename, FA_OPEN_APPEND | FA_WRITE);
2625
if (FR_OK != fr && FR_EXIST != fr)
2726
panic("f_open(%s) error: %s (%d)\n", filename, FRESULT_str(fr), fr);
2827

2928
// Write to the file.
30-
if (f_printf(&fil, "Hello, world!\n") < 0) {
29+
if (f_printf(&fil, "Hello, pico!\n") < 0) {
3130
printf("f_printf failed\n");
3231
}
3332

@@ -40,7 +39,6 @@ int main() {
4039
// Deregister the workspace.
4140
f_unmount(pSD->pcName);
4241

43-
puts("Goodbye, world!");
4442
for(;;);
4543

4644

0 commit comments

Comments
 (0)