diff --git a/src/hardware/configuration.md b/src/hardware/configuration.md index 1515fc8..3556886 100644 --- a/src/hardware/configuration.md +++ b/src/hardware/configuration.md @@ -6,7 +6,7 @@ Additional configuration is required for Debian Buster ARM64 before I²C devices Run an I²C scan to verify that the module is correctly wired to the Pi: -``` +```bash sudo apt-get install python-smbus i2c-tools sudo modprobe i2c-dev sudo i2cdetect -y 1 @@ -20,7 +20,7 @@ The device tree must be patched in order to set the clock frequency for I²C dev Copy `/boot/firmware/bcm2837-rpi-3-b.dtb` from the Pi microSD card to a computer running Linux. Run the following commands: -``` +```bash sudo apt-get install device-tree-compiler cd /place/where/dtb/file/was/pasted dtc -I dtb -O dts > bcm2837-rpi-3-b.dts @@ -38,7 +38,7 @@ Copy the resulting `dtb` onto the Pi microSD card and overwrite `/boot/firmware/ Finally, run the following commands to complete the process: -``` +```bash sudo modprobe i2c-bcm2835 su echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device @@ -54,7 +54,7 @@ A device tree overlay is required to activate the internal pull-up resistors on Begin by downloading the device tree overlay file: `mygpio.dtbo` (TODO: add download link...maybe add the file to one of the repos). Then run the following commands to apply the overlay: -``` +```bash sudo mkdir /boot/firmware/overlays sudo cp mygpio.dtbo /boot/firmware/overlays/ ``` diff --git a/src/hardware/physical_interface.md b/src/hardware/physical_interface.md index 82ce07d..41be417 100644 --- a/src/hardware/physical_interface.md +++ b/src/hardware/physical_interface.md @@ -14,7 +14,7 @@ Any button or joystick direction can be pressed to wake the display after select ### Menu Structure -``` +```bash . ├── Networking │   └── MODE @@ -23,7 +23,7 @@ Any button or joystick direction can be pressed to wake the display after select │   └── IP │   └── SIGNAL │   └── Configuration -│   ├── Client Mode +│   └── Client Mode │   └── Access Point Mode ├── System Stats │   └── CPU diff --git a/src/software/microservices/peach-buttons.md b/src/software/microservices/peach-buttons.md index dc93dd9..f6e4621 100644 --- a/src/software/microservices/peach-buttons.md +++ b/src/software/microservices/peach-buttons.md @@ -12,7 +12,7 @@ _Note: This module is relatively stable but is still a work-in-progress._ ### Directory Tree -``` +```bash . ├── Cargo.lock ├── Cargo.toml @@ -26,7 +26,7 @@ _Note: This module is relatively stable but is still a work-in-progress._ ### Pin to Button to Button Code Mappings -``` +```bash 4 => Center => 0, 27 => Left => 1, 23 => Right => 2, diff --git a/src/software/microservices/peach-menu.md b/src/software/microservices/peach-menu.md index 5e574b7..4f19652 100644 --- a/src/software/microservices/peach-menu.md +++ b/src/software/microservices/peach-menu.md @@ -10,7 +10,7 @@ _Note: This module is a work-in-progress._ ### Directory Tree -``` +```bash . ├── Cargo.lock ├── Cargo.toml @@ -30,7 +30,7 @@ _Note: This module is a work-in-progress._ ### Button Code Mappings -``` +```bash 0 => Center, 1 => Left, 2 => Right, @@ -42,7 +42,7 @@ _Note: This module is a work-in-progress._ ### States -``` +```bash Home(0), // home menu Home(1), // networking selected Home(2), // system stats selected diff --git a/src/software/microservices/peach-network.md b/src/software/microservices/peach-network.md index f9a957b..15dcaaf 100644 --- a/src/software/microservices/peach-network.md +++ b/src/software/microservices/peach-network.md @@ -41,7 +41,7 @@ _Note: This module is a work-in-progress._ ### Directory Tree -``` +```bash . ├── Cargo.lock ├── Cargo.toml diff --git a/src/software/microservices/peach-oled.md b/src/software/microservices/peach-oled.md index 8bee6d3..e54b4dc 100644 --- a/src/software/microservices/peach-oled.md +++ b/src/software/microservices/peach-oled.md @@ -27,7 +27,7 @@ OLED microservice module for PeachCloud. Write to a 128x64 OLED display with SDD ### Directory Tree -``` +```bash . ├── Cargo.lock ├── Cargo.toml diff --git a/src/software/microservices/peach-stats.md b/src/software/microservices/peach-stats.md index 22f3e26..534a3e1 100644 --- a/src/software/microservices/peach-stats.md +++ b/src/software/microservices/peach-stats.md @@ -19,7 +19,7 @@ System statistics microservice module for PeachCloud. Provides a JSON-RPC wrappe ### Directory Tree -``` +```bash . ├── Cargo.lock ├── Cargo.toml diff --git a/src/software/pattern_library.md b/src/software/pattern_library.md index 5eb32d0..204fed8 100644 --- a/src/software/pattern_library.md +++ b/src/software/pattern_library.md @@ -14,7 +14,7 @@ _Note: This is a work-in-progress._ ### Directory Tree -``` +```bash . ├── css │   ├── css_class_names // list of all custom class names diff --git a/src/software/web_interface.md b/src/software/web_interface.md index 9c6a8e9..20b8afc 100644 --- a/src/software/web_interface.md +++ b/src/software/web_interface.md @@ -12,7 +12,7 @@ HTML is rendered server-side. Request handlers call JSON-RPC microservices and s ### Directory Tree -``` +```bash . ├── Cargo.lock ├── Cargo.toml