Add bash tag to all non-code blocks to ensure tests pass
This commit is contained in:
parent
3abf997896
commit
5546056513
|
@ -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:
|
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 apt-get install python-smbus i2c-tools
|
||||||
sudo modprobe i2c-dev
|
sudo modprobe i2c-dev
|
||||||
sudo i2cdetect -y 1
|
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:
|
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
|
sudo apt-get install device-tree-compiler
|
||||||
cd /place/where/dtb/file/was/pasted
|
cd /place/where/dtb/file/was/pasted
|
||||||
dtc -I dtb -O dts > bcm2837-rpi-3-b.dts
|
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:
|
Finally, run the following commands to complete the process:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
sudo modprobe i2c-bcm2835
|
sudo modprobe i2c-bcm2835
|
||||||
su
|
su
|
||||||
echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
|
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:
|
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 mkdir /boot/firmware/overlays
|
||||||
sudo cp mygpio.dtbo /boot/firmware/overlays/
|
sudo cp mygpio.dtbo /boot/firmware/overlays/
|
||||||
```
|
```
|
||||||
|
|
|
@ -14,7 +14,7 @@ Any button or joystick direction can be pressed to wake the display after select
|
||||||
|
|
||||||
### Menu Structure
|
### Menu Structure
|
||||||
|
|
||||||
```
|
```bash
|
||||||
.
|
.
|
||||||
├── Networking
|
├── Networking
|
||||||
│ └── MODE
|
│ └── MODE
|
||||||
|
@ -23,7 +23,7 @@ Any button or joystick direction can be pressed to wake the display after select
|
||||||
│ └── IP
|
│ └── IP
|
||||||
│ └── SIGNAL
|
│ └── SIGNAL
|
||||||
│ └── Configuration
|
│ └── Configuration
|
||||||
│ ├── Client Mode
|
│ └── Client Mode
|
||||||
│ └── Access Point Mode
|
│ └── Access Point Mode
|
||||||
├── System Stats
|
├── System Stats
|
||||||
│ └── CPU
|
│ └── CPU
|
||||||
|
|
|
@ -12,7 +12,7 @@ _Note: This module is relatively stable but is still a work-in-progress._
|
||||||
|
|
||||||
### Directory Tree
|
### Directory Tree
|
||||||
|
|
||||||
```
|
```bash
|
||||||
.
|
.
|
||||||
├── Cargo.lock
|
├── Cargo.lock
|
||||||
├── Cargo.toml
|
├── 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
|
### Pin to Button to Button Code Mappings
|
||||||
|
|
||||||
```
|
```bash
|
||||||
4 => Center => 0,
|
4 => Center => 0,
|
||||||
27 => Left => 1,
|
27 => Left => 1,
|
||||||
23 => Right => 2,
|
23 => Right => 2,
|
||||||
|
|
|
@ -10,7 +10,7 @@ _Note: This module is a work-in-progress._
|
||||||
|
|
||||||
### Directory Tree
|
### Directory Tree
|
||||||
|
|
||||||
```
|
```bash
|
||||||
.
|
.
|
||||||
├── Cargo.lock
|
├── Cargo.lock
|
||||||
├── Cargo.toml
|
├── Cargo.toml
|
||||||
|
@ -30,7 +30,7 @@ _Note: This module is a work-in-progress._
|
||||||
|
|
||||||
### Button Code Mappings
|
### Button Code Mappings
|
||||||
|
|
||||||
```
|
```bash
|
||||||
0 => Center,
|
0 => Center,
|
||||||
1 => Left,
|
1 => Left,
|
||||||
2 => Right,
|
2 => Right,
|
||||||
|
@ -42,7 +42,7 @@ _Note: This module is a work-in-progress._
|
||||||
|
|
||||||
### States
|
### States
|
||||||
|
|
||||||
```
|
```bash
|
||||||
Home(0), // home menu
|
Home(0), // home menu
|
||||||
Home(1), // networking selected
|
Home(1), // networking selected
|
||||||
Home(2), // system stats selected
|
Home(2), // system stats selected
|
||||||
|
|
|
@ -41,7 +41,7 @@ _Note: This module is a work-in-progress._
|
||||||
|
|
||||||
### Directory Tree
|
### Directory Tree
|
||||||
|
|
||||||
```
|
```bash
|
||||||
.
|
.
|
||||||
├── Cargo.lock
|
├── Cargo.lock
|
||||||
├── Cargo.toml
|
├── Cargo.toml
|
||||||
|
|
|
@ -27,7 +27,7 @@ OLED microservice module for PeachCloud. Write to a 128x64 OLED display with SDD
|
||||||
|
|
||||||
### Directory Tree
|
### Directory Tree
|
||||||
|
|
||||||
```
|
```bash
|
||||||
.
|
.
|
||||||
├── Cargo.lock
|
├── Cargo.lock
|
||||||
├── Cargo.toml
|
├── Cargo.toml
|
||||||
|
|
|
@ -19,7 +19,7 @@ System statistics microservice module for PeachCloud. Provides a JSON-RPC wrappe
|
||||||
|
|
||||||
### Directory Tree
|
### Directory Tree
|
||||||
|
|
||||||
```
|
```bash
|
||||||
.
|
.
|
||||||
├── Cargo.lock
|
├── Cargo.lock
|
||||||
├── Cargo.toml
|
├── Cargo.toml
|
||||||
|
|
|
@ -14,7 +14,7 @@ _Note: This is a work-in-progress._
|
||||||
|
|
||||||
### Directory Tree
|
### Directory Tree
|
||||||
|
|
||||||
```
|
```bash
|
||||||
.
|
.
|
||||||
├── css
|
├── css
|
||||||
│ ├── css_class_names // list of all custom class names
|
│ ├── css_class_names // list of all custom class names
|
||||||
|
|
|
@ -12,7 +12,7 @@ HTML is rendered server-side. Request handlers call JSON-RPC microservices and s
|
||||||
|
|
||||||
### Directory Tree
|
### Directory Tree
|
||||||
|
|
||||||
```
|
```bash
|
||||||
.
|
.
|
||||||
├── Cargo.lock
|
├── Cargo.lock
|
||||||
├── Cargo.toml
|
├── Cargo.toml
|
||||||
|
|
Loading…
Reference in New Issue