Skip to content

Instantly share code, notes, and snippets.

View JayToltTech's full-sized avatar

Jay Beavers JayToltTech

  • Tolt Technologies
  • Duvall WA
View GitHub Profile
@JayToltTech
JayToltTech / SerialEcho9600.ino
Created June 29, 2023 06:06
Arduino application that echos incoming serial bytes back and blinks LED upon data received
int blinkTime = 100; // Turn on LED for 100 ms after each char received
int onTime = -1;
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
@JayToltTech
JayToltTech / gist:a3b26ccf062635a509e9e2e9e2a8f9c8
Last active January 10, 2022 22:54
From SQLite to MLDataTable
struct Observation: Identifiable, Codable, FetchableRecord, PersistableRecord {
...
}
public func readDatapoints() -> MLDataTable? {
var dataTable: MLDataTable? = nil
do {
@JayToltTech
JayToltTech / GazeAware.cs
Last active June 30, 2022 12:55
Eye Gaze Aware Discussion
using System;
using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Interop;
using ToltTech.Integration.Win32;
namespace ToltTech.Integration
{
public static class GazeAware
{