Skip to content

Instantly share code, notes, and snippets.

View mfkenson's full-sized avatar
🇭🇰
Focus

Kenson Leung W.K mfkenson

🇭🇰
Focus
View GitHub Profile
@mfkenson
mfkenson / .bashrc
Last active October 24, 2021 18:58
wslg snapd ubuntu 20.04
# https://github.com/microsoft/wslg/issues/479
# https://github.com/arkane-systems/genie/issues/175#issuecomment-922526126
# Append below to your .bashrc to fix wslg
wsl_mount_root=/mnt
wsl_windir="${wsl_mount_root}/c/WINDOWS/System32"
wsl_distro=Ubuntu-20.04
wsl_wslg_display=0
{
"packages": [
{
"maintainer": "DFRobot DFRDuino",
"help": {
"online": "http://esp32.com"
},
"websiteURL": "https://github.com/espressif/arduino-esp32",
"platforms": [
{
#include <Servo.h>
Servo myservo;
void setup() {
Serial.begin(9600);
myservo.attach(7);
myservo.writeMicroseconds(1500);
}