Skip to content

Instantly share code, notes, and snippets.

View konmaz's full-sized avatar

Konstantinos Mazgaltzidis konmaz

View GitHub Profile
@konmaz
konmaz / main.py
Created April 17, 2023 20:44
Use a Raspberry Pi Pico W to send WoL magic packets
import network
import socket
import time
import urequests
from machine import Pin
import uasyncio as asyncio
import rp2
rp2.country('GR') # Set your country if you can't connect to your WiFi
led = Pin(15, Pin.OUT)