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
use std::error::Error; | |
use std::io; | |
use rppal::gpio::{Gpio, Trigger}; // 0.16.1 | |
pub const BTN1: u8 = 13; | |
pub const BTN2: u8 = 4; | |
fn main() -> Result<(), Box<dyn Error>> { | |
let mut btns = [ |
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/sh | |
# this is a sample script which is testing if there is available ESSID on the WiFi | |
# and according to the result it is starting/stopping aawgd | |
# more info: https://github.com/nisargjhaveri/WirelessAndroidAutoDongle/issues/212#issuecomment-2692423007 | |
delaytime=5 | |
essid="searchedAPName" | |
while [ true ]; do | |
wifiavail='iw dev wlan0 scan|grep SSID' |
OlderNewer