Skip to content

Instantly share code, notes, and snippets.

@NobodyIsThere
NobodyIsThere / keyboard.ino
Created August 27, 2021 16:41
Code for Teensy-based dance pad
// Based on Promit Roy's code at https://pastebin.com/Y1vNZ56K
// This is the LED pin for a Teensy LC, may need to change on other boards
const int LedPin = 13;
// The analog threshold value for triggering a button
const int TriggerThreshold = 5;
// How long a step has to be in one state for before we register it
const unsigned long debounce_millis = 5;
// Pin mappings for where things got soldered
@NobodyIsThere
NobodyIsThere / example_trainer.cc
Last active April 9, 2022 13:19
Load a TensorFlow graph in C++
/* Copyright 2015 The TensorFlow Authors. All Rights Reserved.
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,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.