Skip to content

Instantly share code, notes, and snippets.

View botamochi6277's full-sized avatar

botamochi botamochi6277

View GitHub Profile
@botamochi6277
botamochi6277 / platform.py
Created September 22, 2022 03:27
platform.py for xiao_ble_sense
# Copyright 2014-present PlatformIO <contact@platformio.org>
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@botamochi6277
botamochi6277 / led_strip_transition.ipynb
Created August 21, 2022 09:44
led_strip_transition.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@botamochi6277
botamochi6277 / alignSize.js
Created October 9, 2021 02:59
Align size for Adobe Illustrator
// script aligning the size of objects with each object origins (center)
// use case: change hole sizes
var dia = new Window("dialog", "unitize object scale", [0, 0, 250, 400]);
dia.pane1 = dia.add("panel", [5, 25, 240, 300], "refelence length");
dia.radi1 = dia.pane1.add("radiobutton", [10, 10, 170, 30], "max. height");
dia.radi2 = dia.pane1.add("radiobutton", [10, 35, 170, 55], "max. width");
dia.radi3 = dia.pane1.add("radiobutton", [10, 60, 170, 80], "min. height");
dia.radi4 = dia.pane1.add("radiobutton", [10, 85, 170, 105], "min. width");
@botamochi6277
botamochi6277 / M5AtomMic.ino
Created May 15, 2021 07:15
M5Atom using Microphone
/**
* @file M5AtomMic.ino
* @author botamochi6277
* @brief Analog Microphone Test fot M5Atom Series
* @version 0.1
* @date 2021-05-07
*
*
* @licence MIT LICENCE
*
@botamochi6277
botamochi6277 / Solarized.cs
Created December 29, 2020 09:51
Unity Solarized Color theme in game
/// Author: botamochi6277
/// Licence: MIT LICENCE
/// Colors in this file are based on a following link.
/// https://github.com/altercation/solarized
using UnityEngine;
using UnityEditor;
namespace BotaLab
{
/// <summary>
@botamochi6277
botamochi6277 / PIDController.cs
Last active May 20, 2024 04:52
Unity PID controller for position and rotation
using System.Collections;
using System.Collections.Generic;
// using Sirenix.OdinInspector;
using UnityEngine;
using UnityEngine.Serialization;
namespace BotaLab
{
/**
* @brief A Unity Component to control position and rotation with PID controller
@botamochi6277
botamochi6277 / M5Atom_Sweep.ino
Last active November 3, 2020 09:09
M5Atom_Sweep
/**
* @file M5Atom_Sweep.ino
* @author botamochi6277 (botamochi6277@icloud.com)
* @brief Sweep sample with M5Atom Series
* @version 0.1
* @date 2020-11-02
*
* @copyright Copyright (c) 2020
* @licence MIT LICENCE
*/
@botamochi6277
botamochi6277 / M5AtomTilt.ino
Created August 30, 2020 05:44
Tilt Sensor Example for M5Atom Matrix
/**
* @file M5AtomTilt.ino
* @author botamochi6277
* @brief tilt sensor application fot M5Atom Matrix
* acc value is unstable. I recommend to add filters.
* @version 0.1
* @date 2020-08-30
*
* @licence MIT LICENCE
*
@botamochi6277
botamochi6277 / M5AtomPixelFlow.ino
Created August 29, 2020 08:43
M5Atom Matrix Display Test
#include "M5Atom.h"
/* this Example only for M5Atom Matrix */
bool IMU6886Flag = false;
void setup()
{
M5.begin(true, false, true);
delay(50);
@botamochi6277
botamochi6277 / homingbullet.ipynb
Last active March 6, 2020 06:28
HomingBullet
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.