This file contains hidden or 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,SPI | |
from ssd1306 import SSD1306_SPI | |
oled = SSD1306_SPI(128, 64, SPI(2,sck=Pin(18),mosi=Pin(23), miso=Pin(19)),dc=Pin(2),res=Pin(4),cs=Pin(5)) | |
oled.text('Hello, World!', 0, 0) | |
oled.show() |
This file contains hidden or 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
#include <stdio.h> | |
#include "background.c" | |
int main() | |
{ | |
const unsigned char* pt; | |
printf("const uint16_t background[] PROGMEM = {\n"); | |
for (pt = gimp_image.pixel_data; pt - gimp_image.pixel_data < sizeof(gimp_image.pixel_data); pt += 2) { | |
printf("0x%04x,", *((unsigned short*)pt)); |
This file contains hidden or 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
#include <Wire.h> | |
#include <SPI.h> | |
#include <Adafruit_Sensor.h> | |
#include <Adafruit_BME280.h> | |
#include <Adafruit_GFX.h> // Core graphics library by Adafruit | |
#include <Arduino_ST7789.h> //https://github.com/ananevilya/Arduino-ST7789-Library | |
#include "edogawa_unit.h" | |
#include "background.h" // 背景イメージ |
This file contains hidden or 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
#include <SPI.h> | |
struct strCALIBRATION_DATA { | |
uint16_t T1; | |
int16_t T2; | |
int16_t T3; | |
uint16_t P1; | |
int16_t P2; | |
int16_t P3; |
This file contains hidden or 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
RC_NEED="!net net.eth0" | |
# "usbip list -l" to see list of usb devices | |
AUTOBIND="2-1 2-2" |
This file contains hidden or 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
location ~ [^/]\.cgi(/|$) { | |
fastcgi_split_path_info ^(.+\.cgi)(/.+)$; | |
if (!-f $document_root$fastcgi_script_name) { | |
return 404; | |
} | |
include fastcgi_params; | |
fastcgi_pass unix:/run/fcgiwrap-nginx.socket-1; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param PATH_INFO $fastcgi_path_info; | |
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; |
This file contains hidden or 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
#!/usr/bin/python2.7 | |
import linkcheck, linkcheck.director, linkcheck.cmdline, linkcheck.logger | |
class MyLogger(linkcheck.logger._Logger): | |
LoggerName = "my" | |
def start_output(self): | |
pass | |
def log_url(self, url_data): |
This file contains hidden or 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
diff --git a/sw.c.orig b/sw.c | |
index 43e021b..7bbe252 100644 | |
--- a/sw.c.orig | |
+++ b/sw.c | |
@@ -387,6 +387,7 @@ static const struct usb_device_id rtl8192c_usb_ids[] = { | |
{RTL_USB_DEVICE(0x20f4, 0x624d, rtl92cu_hal_cfg)}, /*TRENDNet*/ | |
{RTL_USB_DEVICE(0x2357, 0x0100, rtl92cu_hal_cfg)}, /*TP-Link WN8200ND*/ | |
{RTL_USB_DEVICE(0x7392, 0x7822, rtl92cu_hal_cfg)}, /*Edimax -Edimax*/ | |
+ {RTL_USB_DEVICE(0x056e, 0x4009, rtl92cu_hal_cfg)}, /*Elecom WDC-300SU2SBK*/ | |
{} |