Skip to content

Instantly share code, notes, and snippets.

View devemin's full-sized avatar

devemin devemin

View GitHub Profile
@shikarunochi
shikarunochi / RomaKanaHenkan.h
Last active February 6, 2025 09:54
M5Stack LLM Module に M5Facesキーボードから入力。ひらがな・カタカナ変換対応
#include<M5Unified.h>
String romaHenkan[][4] = {
"-", "ー" ,"ー","",
"n'", "ん" ,"ン","",
"xtsu","っ" ,"ッ","",
"kk","っ" ,"ッ","k",
"ss","っ" ,"ッ","s",
@mongonta0716
mongonta0716 / main.cpp
Last active November 8, 2025 23:49
M5Unifiedで外部ディスプレイ(SPI接続の液晶)を使う場合のサンプル(例、GC9107) https://ssci.to/9438
/*
M5Unified(M5GFX)でSPI接続の外部LCD(外部液晶)を使用するサンプル。
M5StampS3に下記のように接続しています。0.85インチ LCDディスプレイモジュール(128x128、SPI接続)
M5StampS3 --- LCD
3V3 - VCC
GND - GND
1 - DIN(MOSI)
2 - CLK(SCLK)
3 - CS
4 - DC
@GOROman
GOROman / CRSFProtocol.md
Last active November 11, 2026 04:30
ExpressLRS / CRSF Protocol 解析メモ
@redheli
redheli / gist:17d5da6089803c72d3d8bbb811739298
Created March 1, 2023 14:07
convert livox_ros_driver2::CustomMsg to sensor_msgs::PointCloud2
#include <ros/ros.h>
#include <rosbag/bag.h>
#include <rosbag/view.h>
#include <pcl_conversions/pcl_conversions.h>
#include <std_msgs/Int32.h>
#include <sensor_msgs/PointCloud2.h>
#include "livox_def_common.h"
#include <livox_ros_driver2/CustomMsg.h>
@puhitaku
puhitaku / fontify.py
Last active February 12, 2021 13:52
Unicode special character converter
#!/usr/bin/env python3
import fileinput, sys
from dataclasses import dataclass
@dataclass
class Style:
start: int
patch: dict
@Akkiesoft
Akkiesoft / majocairis.dts
Last active January 20, 2021 15:59
!!DEPRECATED!! now maintenance by devemin https://github.com/devemin/fbtft /// ラズピッピに接続できる部材がきたので書いたけどわからんマ●ョカ●イリスdts(コンパイルはできるけど動かないはずなので注意)
/* Device Tree for MajocaIris */
/* NOT WORKING YET */
/* ベースにした: https://gist.github.com/hgroll/2731ae6d05350df663b123615f765bf5 */
/* compile
$ dtc -I dts -O dtb -o majocairis.dtbo majocairis.dts
$ sudo cp majocairis.dtbo /boot/overlays/
*/
/* configure
@comoc
comoc / gist:e784fefea4f16186f89f16010a1e8398
Last active September 18, 2020 06:48
@chikuta さんのプリメイドAIのURDFをUnity ROS#で表示する方法

準備

@chikuta さんのpremaidai_descriptionのURDFを ROS(Kinetic等)とROS#を使ってUnity上に召喚する方法

1. ROSのcatkin_ws内の作業

URDFをrosbridge websocketで送出するための作業

  1. https://github.com/siemens/ros-sharp/tree/master/ROS の file_server フォルダ以下を丸ごと catkin_ws/src 以下に置く
  2. cd catkin_ws/src そして git clone https://github.com/chikuta/premaidai_description.git
  3. premaidai_description/launch 内に以下の内容を記述した fileserver.launch という名前のファイルを作る
@GOROman
GOROman / PMAAnalyze.rb
Last active January 3, 2022 15:04
プリメイドAI (Premaid AI) のモーションフォーマット(.pma)を解析する
#!/usr/bin/env ruby -
# coding: utf-8
# Premaid AI - .pma file analyzer.
SERVO_OFFSET = 7500
class PMAFile
def initialize
@buf = ""
@GOROman
GOROman / MatrixViewer.cs
Created May 9, 2019 06:53
UnityのSceneView上に行列を表示する
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MatrixViewer : MonoBehaviour
{
void Update()
{
}
@Dogers
Dogers / rawprinttest.py
Created December 10, 2018 11:39
Send a file to Windows printer in RAW format
import win32print
import sys
from pathlib import Path
# Python 3 only..
if sys.version_info[0] < 3:
raise Exception("Python 3 or a more recent version is required.")
printers = win32print.EnumPrinters(4)
printercount = 0