This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* ESPNOW Example | |
| This example code is in the Public Domain (or CC0 licensed, at your option.) | |
| Unless required by applicable law or agreed to in writing, this | |
| software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR | |
| CONDITIONS OF ANY KIND, either express or implied. | |
| */ | |
| /* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| index.js | |
| media-api.js | |
| media-service.js | |
| services-manager.js | |
| server/client-connection.js | |
| server/devices/drivers/generic/generic-driver.js | |
| server/devices/drivers/generic/service-adapters/light-adapter.js | |
| server/services/light-service.js | |
| server/services/services-manager.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <string.h> | |
| #include "freertos/FreeRTOS.h" | |
| #include "freertos/task.h" | |
| #include "esp_spi_flash.h" | |
| #include "esp_err.h" | |
| #include "esp_log.h" | |
| #include "esp_partition.h" | |
| #include "driver/i2s.h" | |
| #include "driver/adc.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # rotate_desktop.sh | |
| # | |
| # Rotates modern Linux desktop screen and input devices to match. Handy for | |
| # convertible notebooks. Call this script from panel launchers, keyboard | |
| # shortcuts, or touch gesture bindings (xSwipe, touchegg, etc.). | |
| # | |
| # Using transformation matrix bits taken from: | |
| # https://wiki.ubuntu.com/X/InputCoordinateTransformation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo ==== started $(date +%H:%M) ==== | |
| device="$1" | |
| image_file=$(date +%m-%d-%y)-gateway.img | |
| sudo dd bs=40M if=$device | pv | sudo dd bs=4M of=$image_file | |
| notify-send -u critical "Made Image" | |
| echo ==== finished $(date +%H:%M) ==== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo ==== $(date +%H:%M) ==== | |
| image_file="$1" | |
| device="$2" | |
| sudo dd bs=1M if=${image_file} | pv | sudo dd bs=1M of=$device | |
| #play /home/physiii/sound.ogg | |
| notify-send -u normal "Done writing image to drive" | |
| echo ==== $(date +%H:%M) ==== |