Hi- this is a quick script to control 2 LEDs with 2 Momentary Switches. It's a very simple script that switches between 4 unique states.
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
//Medpuck Code v0.1 | |
//Michal Bodzianowski (c) 2021 | |
//NOTE: EEPROM implementation not fully functioning | |
//Upcoming changes include: | |
//- EEPROM fix | |
//- change lighting scheme | |
//Libraries required | |
#include <Adafruit_NeoPixel.h> | |
#include <EEPROM.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
// LED Pong | |
// Michal Bodzianowski (c) 2021 | |
#include <Adafruit_NeoPixel.h> | |
// Fix for dropping inputs. Every tick, inputRatio | |
// number of inputs will be listend for. In this case, | |
// max delay is at 30ms. If you can click the button | |
// and release it faster than that... god bless you. | |
const int inputRatio = 10; | |
int counter = 0; |
So, IKPY is surprisingly not as robust a library as I would have imagined, and its quite poorly documented. After struggling for a few days trying to get it to work with TIAGO Steel, here are some things that helped.
- So, IKPY is actually a bit outdated. Optionally, I'd recommend installing a fork of IKPY by user Alters-Mit which fixes some issues with prismatic joints, which the TIAGO Steel contains. More info here. Phylliade/ikpy#96
- To install this fork of ikpy, run
pip install git+https://github.com/alters-mit/ikpy.git#egg=ikpy
in your console. - I'm not sure if this helped, but it seemed to. If you don't have problems, do this optionally.
- Finally, put the following at the top of your controller file-
-
from ikpy.chain import Chain from ikpy.link import OriginLink, URDFLink
- To install this fork of ikpy, run
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
[Unicode] | |
Unicode=yes | |
[System Access] | |
MinimumPasswordAge = 0 | |
MaximumPasswordAge = 42 | |
MinimumPasswordLength = 0 | |
PasswordComplexity = 0 | |
PasswordHistorySize = 0 | |
LockoutBadCount = 0 | |
RequireLogonToChangePassword = 0 |
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
#Metal Gear WNDSOR by Michal Bodzianowski | |
#DEFINED | |
$services_exempt = "AppMgmt", "AppXSvc", "camsvc", "ClipSVC", "defragsvc", "DoSvc", "DsSvc", "InstallService", "PhoneSvc", "smphost", "TrustedInstaller", "LSM", "NetSetupSVC" | |
#resource | |
#SETUP | |
$host.UI.RawUI.ForegroundColor = "Gray" |
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
// -*- C++ -*- | |
//===------------------------------ vector --------------------------------===// | |
// | |
// The LLVM Compiler Infrastructure | |
// | |
// This file is dual licensed under the MIT and the University of Illinois Open | |
// Source Licenses. See LICENSE.TXT for details. | |
// | |
//===----------------------------------------------------------------------===// |
NewerOlder