Skip to content

Instantly share code, notes, and snippets.

@KhaosT
KhaosT / Keyboard and Trackpad for Apple Vision Pro.md
Last active March 20, 2024 20:31
Keyboard & Trackpad for Apple Vision Pro

Keyboard & Trackpad for Apple Vision Pro

Photo of a stack of keyboards

Over the last few months, in preparation for Apple Vision Pro, I started a quest to find a good portable keyboard + trackpad setup for the headset. After testing out a wide range of those from the market, here are my findings. Hope it helps people looking for the same.

The impression is based on testing out the keyboard/trackpad with iPadOS, as it shares the similar infrastructure for external input support as visionOS.

After testing on real hardware, visionOS disabled support for any non-Apple trackpad... So feel free to ignore everything about non-Apple trackpad here.

@KhaosT
KhaosT / HDMI on Apple Vision Pro.md
Last active April 21, 2024 03:49
Guide for using Apple Vision Pro as HDMI display

Displaying HDMI sources on Apple Vision Pro

While it's possible to stream most content to Apple Vision Pro directly over the internet, having the ability to use Apple Vision Pro as an HDMI display can still be useful.

Since Apple Vision Pro does not support connecting to an HDMI input directly or using an HDMI capture card, we have to be a little creative to make this work. NDI provides the ability to stream HDMI content over a local network with really low latency, and it works great with Apple Vision Pro.

This page shows the setup I’m using.

@KhaosT
KhaosT / Cloud Gaming on Apple Vision Pro.md
Last active May 4, 2024 16:42
Guide for clouding gaming on Apple Vision Pro

Cloud Gaming on Apple Vision Pro

GeForce Now

Cloud Gaming is a great way to enjoy graphically demanding games on Apple Vision Pro.

Since Safari on visionOS does not support PWA mode, here is how you can access cloud gaming services on Apple Vision Pro.

What’s needed

@KhaosT
KhaosT / ota.c
Last active April 10, 2021 03:53
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <ctype.h>
#include <unistd.h>
#define _GNU_SOURCE 1
#include <string.h>
#include <sys/stat.h> // for mkdir
#include <sys/mman.h> // for mmap
package main
import (
"crypto/aes"
"crypto/cipher"
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"crypto/sha256"
"encoding/hex"

Keybase proof

I hereby claim:

  • I am khaost on github.
  • I am khaost (https://keybase.io/khaost) on keybase.
  • I have a public key ASBEBGIiSN0FVmKr4-ijyag8jv19nYIgahGddhR_aWflhAo

To claim this, I am signing this object:

var storage = require('node-persist');
var mraa = new require("mraa");
var accessory_Factor = new require("./Accessory.js");
var accessoryController_Factor = new require("./AccessoryController.js");
var service_Factor = new require("./Service.js");
var characteristic_Factor = new require("./Characteristic.js");
console.log("HAP-NodeJS starting...");
@KhaosT
KhaosT / WS2812.c
Created April 23, 2014 07:57
WS2812 support for CC254x
//
// WS2812.c
//
//
// Created by Khaos Tian on 4/23/14.
//
//
//osal_start_timerEx(simpleBLEPeripheral_TaskID, OLT_LED_EVT, 1000);