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
--- 50-usb-realtek-net.rules.orig 2022-05-10 19:06:50.312255170 +0900 | |
+++ 50-usb-realtek-net.rules 2022-05-10 19:07:51.472438505 +0900 | |
@@ -43,4 +43,7 @@ | |
# LINKSYS | |
ATTR{idVendor}=="13b1", ATTR{idProduct}=="0041", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}" | |
+# ELECOM | |
+ATTR{idVendor}=="056e", ATTR{idProduct}=="4017", ATTR{bConfigurationValue}!="$env{REALTEK_MODE1}", ATTR{bConfigurationValue}="$env{REALTEK_MODE1}" | |
+ | |
LABEL="usb_realtek_net_end" |
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
// ESP32の64ビットタイマを用いてワンショット割り込みを発生させる実験コード。 | |
// 1000ミリ秒毎に10ミリ秒後に割り込みを発生させることを意図している。 | |
// けれども1回目の割り込みは発生するものの、2回目以降の割り込みが発生しない。 | |
#include <Arduino.h> | |
hw_timer_t *g_one_shot_timer = nullptr; | |
portMUX_TYPE g_one_shot_timer_mutex = portMUX_INITIALIZER_UNLOCKED; | |
volatile uint32_t g_one_shot_timer_counter = 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
// ESP32の64ビットタイマを用いて連続的に割り込みを発生させる実験コード。 | |
// 10ミリ秒毎に割り込みが発生するため、1秒毎に[periodical_timer_counter]が100増加する。 | |
#include <Arduino.h> | |
hw_timer_t *g_periodical_timer = nullptr; | |
portMUX_TYPE g_periodical_timer_mutex = portMUX_INITIALIZER_UNLOCKED; | |
volatile uint32_t g_periodical_timer_counter = 0; | |
void IRAM_ATTR onPeriodicalTimer() { |
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
const uint8_t PIN_PWM = 12; | |
const uint8_t PIN_FOOT_SWITCH = 5; | |
uint8_t countOfSwitchPushed = 0; | |
uint32_t switchCounterLastUpdatedTime = 0; | |
void setup() { | |
Serial.begin(115200); | |
Serial.println("ver2"); |
This file has been truncated, but you can view the full file.
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 random | |
import msgpack | |
import more_itertools | |
import tensorflow as tf | |
import numpy as np | |
import environment | |
import scalarizer as sc |
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
/* | |
* magazine-rack-led.ino | |
* (C) 2016 Yuya Kato. | |
* MIT License | |
*/ | |
#include "application.h" | |
#include "neopixel/neopixel.h" | |
SYSTEM_MODE(AUTOMATIC); |
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
fs = require("fs") | |
Pushbullet = require("pushbullet") | |
Bacon = require("baconjs") | |
strftime = require("strftime") | |
logger = new Bacon.Bus() | |
logger.onValue (record)-> |
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
/* | |
* entrance-led.ino | |
* (C) 2016 Yuya Kato | |
* MIT License | |
*/ | |
#include "application.h" | |
//#include "spark_disable_wlan.h" // For faster local debugging only | |
#include "neopixel/neopixel.h" |
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
/* | |
*/ | |
#include "application.h" | |
#include "neopixel/neopixel.h" | |
SYSTEM_MODE(AUTOMATIC); | |
int colorIndex = 0; | |
Adafruit_NeoPixel strip1 = Adafruit_NeoPixel(3, D2, WS2812B); |
NewerOlder