Skip to content

Instantly share code, notes, and snippets.

@neosarchizo
neosarchizo / manatoki.user.js
Last active May 11, 2024 03:00
마나토끼
// ==UserScript==
// @name 마나토끼
// @namespace https://neosarchizo.github.io/
// @version 1.0.398
// @description try to take over the world!
// @author neosarchizo
// @match https://manatoki337.net/
// @match https://manatoki337.net/page/update
// @match https://manatoki337.net/bbs/page.php?hid=update&page=*
// @match https://manatoki337.net/comic/*
@neosarchizo
neosarchizo / .dockerignore
Created October 10, 2018 00:28
Dockerfile and .dockerignore for create-react-app
*/node_modules/
*/build/
*/.git/
.gitignore
Dockerfile
.editorconfig
@neosarchizo
neosarchizo / packet.java
Created March 7, 2022 07:29
[Processing] PM2008 packet to CSV
import java.util.ArrayList;
class Packet {
static final int PACKET_STX = 0xAB;
static final int PACKET_ETX = 0x7D;
static final int PACKET_CMD_GET_PM2008 = 0;
static final int PACKET_POS_STX = 0;
static final int PACKET_POS_LEN = 1;
@neosarchizo
neosarchizo / main.py
Created November 26, 2022 05:31
MicroPython - RPi Pico W 비동기 서버로 LED 제어하기
from network import WLAN, STA_IF
from time import sleep
import socket
from machine import Pin
import uasyncio as asyncio
SSID = 'devicemart'
PASSWORD = 'devicemart1'
HTML = '''<!DOCTYPE html>
@neosarchizo
neosarchizo / main.py
Created November 25, 2022 03:59
MicroPython - RPi Pico W 서버로 LED 제어하기
from network import WLAN, STA_IF
from time import sleep
import socket
from machine import Pin
led = Pin(18, Pin.OUT)
led.value(0)
SSID = 'devicemart'
PASSWORD = 'devicemart1'
@neosarchizo
neosarchizo / main.py
Created November 24, 2022 04:45
MicroPython - RPi Pico W 서버 실행하기
from network import WLAN, STA_IF
from time import sleep
import socket
SSID = 'devicemart'
PASSWORD = 'devicemart1'
HTML = '''<!DOCTYPE html>
<html>
<head>
@neosarchizo
neosarchizo / main_0.py
Created November 23, 2022 04:43
MicroPython - RPi Pico W HTTP 통신하기
from network import WLAN, STA_IF
from time import sleep
import socket
SSID = 'devicemart'
PASSWORD = 'devicemart1'
wlan = WLAN(STA_IF)
wlan.active(True)
wlan.connect(SSID, PASSWORD)
@neosarchizo
neosarchizo / main.py
Created November 23, 2022 03:46
MicroPython - RPi Pico W WiFi 사용하기
from network import WLAN, STA_IF
from time import sleep
SSID = 'devicemart'
PASSWORD = 'devicemart1'
wlan = WLAN(STA_IF)
wlan.active(True)
wlan.connect(SSID, PASSWORD)
@neosarchizo
neosarchizo / main.py
Last active November 15, 2022 08:26
MicroPython - ADC 제어
from machine import Pin, SoftI2C, ADC, Timer
from ssd1306 import SSD1306_I2C
i2c = SoftI2C(sda=Pin(13), scl=Pin(14))
display = SSD1306_I2C(128, 64, i2c, addr=0x3C)
adc = ADC(Pin(36))
def on_timeout(_):
display.fill(0)
display.text('DeviceMart', 0, 0)
@neosarchizo
neosarchizo / main.py
Last active November 14, 2022 07:53
MicroPython - RTC 제어
from machine import Pin, SoftI2C, RTC, Timer
from ssd1306 import SSD1306_I2C
WEEK = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
# Mon ~ Sun : 0 ~ 6
# ex) 01:20:05
pads = ['', '', '']
i2c = SoftI2C(sda=Pin(13), scl=Pin(14))