Skip to content

Instantly share code, notes, and snippets.

View alatalo's full-sized avatar

Ville Alatalo alatalo

View GitHub Profile
@alatalo
alatalo / ntp-clock.ino
Created August 29, 2025 07:42
Impulse NTP master clock for ESP32 + L298N and mechanical slave clocks (alternate polarity each pulse)
// Impulse NTP master clock for ESP32 + L298N (alternate polarity each pulse)
// Original by Wawa https://forum.arduino.cc/t/running-special-clock-with-motor-controller/1159828/106
// Refactored by Ville Alatalo https://github.com/alatalo 08/2025
// + minute-impulses
// + ENA for toggling coil
// + Finnish NTP + TZ
const char* WIFI_SSID = "Internet of Shit"; // WiFi SSID
const char* WIFI_PASS = ""; // WiFi password
const char* MY_TZ = "EET-2EEST,M3.5.0/3,M10.5.0/4"; // Helsinki, Finland
@alatalo
alatalo / GetArctisBatteryLevel.ps1
Last active June 23, 2024 10:05
Show the battery level of Logitech Arctis 7 headset in small Powershell window. Uses HeadsetControl by Sapd <Denis Arnst> at https://github.com/Sapd/HeadsetControl
#!/usr/bin/env pwsh
# Show the battery level of Logitech Arctis 7 headset in a
# small Powershell window. Uses HeadsetControl by Sapd <Denis Arnst>.
#
# Requirements:
# * Powershell and `Set-ExecutionPolicy RemoteSigned`
# * headsetcontrol.exe https://github.com/Sapd/HeadsetControl
#
# Note: For desktop icon, see attached headset_createDesktopIcon.ps1