From bde52a6e9b3c21568e622b32f06c5b816b766a89 Mon Sep 17 00:00:00 2001 From: Jonas_Jones Date: Tue, 30 Aug 2022 22:51:07 +0200 Subject: [PATCH] initial project structure --- .idea/PI-server-rack.iml | 5 ++++- .idea/discord.xml | 7 +++++++ .idea/misc.xml | 4 ---- .vscode/c_cpp_properties.json | 18 ++++++++++++++++++ .vscode/settings.json | 3 +++ Cargo.toml | 8 -------- arduino/README.md | 1 + arduino/arduino.ino | 9 +++++++++ desktop/Cargo.toml | 17 +++++++++++++++++ desktop/README.md | 1 + {src => desktop/src}/main.rs | 0 pi-master/Cargo.toml | 19 +++++++++++++++++++ pi-master/README.md | 1 + pi-master/src/main.rs | 3 +++ pi-slave/Cargo.toml | 17 +++++++++++++++++ pi-slave/README.md | 1 + pi-slave/src/main.rs | 3 +++ 17 files changed, 104 insertions(+), 13 deletions(-) create mode 100644 .idea/discord.xml create mode 100644 .vscode/c_cpp_properties.json create mode 100644 .vscode/settings.json delete mode 100644 Cargo.toml create mode 100644 arduino/README.md create mode 100644 arduino/arduino.ino create mode 100644 desktop/Cargo.toml create mode 100644 desktop/README.md rename {src => desktop/src}/main.rs (100%) create mode 100644 pi-master/Cargo.toml create mode 100644 pi-master/README.md create mode 100644 pi-master/src/main.rs create mode 100644 pi-slave/Cargo.toml create mode 100644 pi-slave/README.md create mode 100644 pi-slave/src/main.rs diff --git a/.idea/PI-server-rack.iml b/.idea/PI-server-rack.iml index d6ebd48..9b4cf84 100644 --- a/.idea/PI-server-rack.iml +++ b/.idea/PI-server-rack.iml @@ -2,7 +2,10 @@ - + + + + diff --git a/.idea/discord.xml b/.idea/discord.xml new file mode 100644 index 0000000..d8e9561 --- /dev/null +++ b/.idea/discord.xml @@ -0,0 +1,7 @@ + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml index 2ca2389..639900d 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,9 +1,5 @@ - - diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..5d33845 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,18 @@ +{ + "configurations": [ + { + "name": "Linux", + "includePath": [ + "${workspaceFolder}/**", + "/usr/include/openvdb/io", + "/home/jonas_jones/GitHub/PI-server-rack/arduino" + ], + "defines": [], + "compilerPath": "/sbin/clang", + "cStandard": "c17", + "cppStandard": "c++14", + "intelliSenseMode": "linux-clang-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..691a8f6 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "C_Cpp.errorSquiggles": "Disabled" +} \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml deleted file mode 100644 index 624cb06..0000000 --- a/Cargo.toml +++ /dev/null @@ -1,8 +0,0 @@ -[package] -name = "hello_world" -version = "0.1.0" -edition = "2021" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - -[dependencies] diff --git a/arduino/README.md b/arduino/README.md new file mode 100644 index 0000000..10ed215 --- /dev/null +++ b/arduino/README.md @@ -0,0 +1 @@ +# Arduno module \ No newline at end of file diff --git a/arduino/arduino.ino b/arduino/arduino.ino new file mode 100644 index 0000000..95c2b6e --- /dev/null +++ b/arduino/arduino.ino @@ -0,0 +1,9 @@ +void setup() { + // put your setup code here, to run once: + +} + +void loop() { + // put your main code here, to run repeatedly: + +} diff --git a/desktop/Cargo.toml b/desktop/Cargo.toml new file mode 100644 index 0000000..0e062bc --- /dev/null +++ b/desktop/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "desktop" +version = "0.1.0" +authors = "Jonas_Jones" +edition = "2021" +description = "The desktop module of the PI-server-rack project." +documentation = "https://github.com/JonasJones/PI-server-rack" +readme = "README.md" +homepage = "https://jonasjones.me/PI-server-rack" +repository = "https://github.com/J-onasJones/PI-server-rack" +license = "MIT OR Apache-2.0" +keywords = ["server", "raspberry pi"] +categories = ["config"] + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/desktop/README.md b/desktop/README.md new file mode 100644 index 0000000..ff9c5e3 --- /dev/null +++ b/desktop/README.md @@ -0,0 +1 @@ +# Desktop (PC/MAC) module \ No newline at end of file diff --git a/src/main.rs b/desktop/src/main.rs similarity index 100% rename from src/main.rs rename to desktop/src/main.rs diff --git a/pi-master/Cargo.toml b/pi-master/Cargo.toml new file mode 100644 index 0000000..f80d8db --- /dev/null +++ b/pi-master/Cargo.toml @@ -0,0 +1,19 @@ +[package] +name = "pi-master" +version = "0.1.0" +authors = "Jonas_Jones" +edition = "2021" +description = "The Raspberry Pi master module of the PI-server-rack project." +documentation = "https://github.com/JonasJones/PI-server-rack" +readme = "README.md" +homepage = "https://jonasjones.me/PI-server-rack" +repository = "https://github.com/J-onasJones/PI-server-rack" +license = "MIT OR Apache-2.0" +keywords = ["server", "raspberry pi"] +categories = ["config"] + + + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/pi-master/README.md b/pi-master/README.md new file mode 100644 index 0000000..408ec74 --- /dev/null +++ b/pi-master/README.md @@ -0,0 +1 @@ +# Raspberry PI master module \ No newline at end of file diff --git a/pi-master/src/main.rs b/pi-master/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/pi-master/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +} diff --git a/pi-slave/Cargo.toml b/pi-slave/Cargo.toml new file mode 100644 index 0000000..2e0c46a --- /dev/null +++ b/pi-slave/Cargo.toml @@ -0,0 +1,17 @@ +[package] +name = "pi-slave" +version = "0.1.0" +authors = "Jonas_Jones" +edition = "2021" +description = "The Raspberry Pi slave module of the PI-server-rack project." +documentation = "https://github.com/JonasJones/PI-server-rack" +readme = "README.md" +homepage = "https://jonasjones.me/PI-server-rack" +repository = "https://github.com/J-onasJones/PI-server-rack" +license = "MIT OR Apache-2.0" +keywords = ["server", "raspberry pi"] +categories = ["config"] + +# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html + +[dependencies] diff --git a/pi-slave/README.md b/pi-slave/README.md new file mode 100644 index 0000000..6a8cffa --- /dev/null +++ b/pi-slave/README.md @@ -0,0 +1 @@ +# Raspberry PI slave module \ No newline at end of file diff --git a/pi-slave/src/main.rs b/pi-slave/src/main.rs new file mode 100644 index 0000000..e7a11a9 --- /dev/null +++ b/pi-slave/src/main.rs @@ -0,0 +1,3 @@ +fn main() { + println!("Hello, world!"); +}