Skip to content

Instantly share code, notes, and snippets.

View devemin's full-sized avatar

devemin devemin

View GitHub Profile
#include <Arduino.h>
#include <M5Unified.h>
static constexpr int UWB_TX_PIN = 6;
static constexpr int UWB_RX_PIN = 7;
static constexpr int UWB_RST_PIN = 8;
static constexpr uint32_t UWB_BAUD = 115200;
// 8文字固定
@devemin
devemin / AI_Pyramid_Demo.py
Created February 19, 2026 03:18
/usr/local/m5stack/bin/AI_Pyramid_Demo.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SPDX-FileCopyrightText: 2026 M5Stack Technology CO LTD
#
# SPDX-License-Identifier: MIT
import argparse
import json
import socket
import uuid
from typing import Any, Dict, Optional
ARCH := x86_64
CC := gcc
LD := ld
OBJCOPY := objcopy
EFI_PATH := /usr/lib
LIBDIR := /usr/lib
CFLAGS := -I/usr/include/efi -I/usr/include/efi/$(ARCH) \
-fno-stack-protector -fpic -fshort-wchar -mno-red-zone \
ARCH := x86_64
CC := gcc
LD := ld
OBJCOPY := objcopy
//Demo for INMP441 マイク(I2S PDM)
//from:
//https://kazulog.fun/dev/esp32-i2s-microphone/
#include <Arduino.h>
#include <driver/i2s.h>
@devemin
devemin / FacesKeyboard_Class.cpp
Created February 10, 2025 15:48
LLM-Keyboard-M5Stack - MIT License
#include "FacesKeyboard_Class.hpp"
//Firmware
//https://github.com/m5stack/FACES-Firmware
//Documents
//https://docs.m5stack.com/ja/core/face_kit
//Examples
@devemin
devemin / stl2pc2.py
Last active December 24, 2024 14:05
#MIT License
'''
Copyright (c) 2020 Sebastian Grans
Copyright (c) 2024 devemin
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@devemin
devemin / Balloon.cpp
Created July 12, 2024 12:31
ESP32C3_ToothBrush_M5Avatar
// Copyright (c) Shinya Ishikawa. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full
// license information.
#ifndef BALLOON_H_
#define BALLOON_H_
#define LGFX_USE_V1
#include <M5Unified.h>
#include "DrawContext.h"
#include "Drawable.h"