Skip to content
Snippets Groups Projects
Commit 71c485fe authored by Peter Gerwinski's avatar Peter Gerwinski
Browse files

Notizen, Beispiele und Screenshots 9.11.2022

parent 1ddcb991
No related branches found
No related tags found
No related merge requests found
Showing
with 43 additions and 0 deletions
#include <Wire.h>
void setup() {
Wire.begin(); // join i2c bus (address optional for master)
}
void loop() {
Wire.beginTransmission(0xcc);
Wire.write(255);
Wire.endTransmission();
// delay(500);
}
void setup() {
//Initialize serial and wait for port to open:
Serial.begin(9600,SERIAL_8E1);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
}
void loop() {
Serial.write('G');
delay(1000);
}
...@@ -29,3 +29,22 @@ https://de.wikipedia.org/wiki/I%C2%B2C#Takt_und_Zust%C3%A4nde_des_Busses ...@@ -29,3 +29,22 @@ https://de.wikipedia.org/wiki/I%C2%B2C#Takt_und_Zust%C3%A4nde_des_Busses
der Datenleitung während der neunten Takt-High-Phase (welche nach wie vor vom der Datenleitung während der neunten Takt-High-Phase (welche nach wie vor vom
Master generiert wird) und als NACK (für engl. not acknowledge) durch einen Master generiert wird) und als NACK (für engl. not acknowledge) durch einen
High-Pegel signalisiert. High-Pegel signalisiert.
-----------------------------------------------------------------------
https://todo.sr.ht/~mil/sxmo-tickets/539
I investigated how to prevent my phone from going to sleep while using SSH.
Currently default_hooks/sxmo_hook_check_state_mutexes.sh checks using the
following command for a running SSH session:
netstat -tn | grep ESTABLISHED | cut -d':' -f2 | grep -q '^22 '
As IPv6 addresses contain colons itself, this only works for IPv4. I would
suggest to change this to the following:
netstat -tn | grep ESTABLISHED | cut -d\ -f16 | grep -q ':22$'
(or, for easier readibility, but with new dependency on preinstalled awk):
netstat -tn | grep ESTABLISHED | awk '{ print $4 }' | grep -q ':22$'
20221109/screenshot-20221109-162052.png

1.12 MiB

20221109/screenshot-20221109-162358.png

418 KiB

20221109/screenshot-20221109-163252.png

1.26 MiB

20221109/screenshot-20221109-163302.png

1.37 MiB

20221109/screenshot-20221109-163340.png

1.27 MiB

20221109/screenshot-20221109-165409.png

1.11 MiB

20221109/screenshot-20221109-171642.png

1.33 MiB

20221109/screenshot-20221109-171755.png

486 KiB

20221109/screenshot-20221109-171835.png

492 KiB

20221109/screenshot-20221109-173216.png

429 KiB

20221109/screenshot-20221109-173230.png

1.31 MiB

20221109/screenshot-20221109-175605.png

1.23 MiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment