This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*/node_modules/ | |
*/build/ | |
*/.git/ | |
.gitignore | |
Dockerfile | |
.editorconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from network import WLAN, STA_IF | |
from time import sleep | |
import socket | |
SSID = 'devicemart' | |
PASSWORD = 'devicemart1' | |
HTML = '''<!DOCTYPE html> | |
<html> | |
<head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
NewerOlder