Faceclaw support for G1s

Relies on the glasses having the firmware from
https://github.com/jimrandomh/scouter_kit, based on Mafik's Scouter Kit.
This commit is contained in:
James Babcock committed 2026-11-06 00:12:23 -08:00
1 parent f803f4212c
commit 67aff19923
27 files changed
+1902 -45

No files matched your search

+11 -4
View File
@@ -186,9 +186,9 @@ export class PairingViewModel extends Observable {
get instructions(): string {
return (
"Select your G2 glasses or RayNeo iO, and your R1 ring if you have one, below. Wear the glasses or take them out of the case, " +
"and keep the glasses and phone nearby. If your glasses are not detected, make sure no other " +
"apps are connected."
"Select your G2 or G1 glasses or RayNeo iO, and your R1 ring if you have one, below. Wear the glasses or take them out of the case " +
"(a G1 pairs only in its case, with the lid open), and keep the glasses and phone nearby. If your glasses are not detected, " +
"make sure no other apps are connected."
);
}
@@ -358,7 +358,8 @@ export class PairingViewModel extends Observable {
ring: ringAddress,
};
saveDeviceAddresses(addresses);
if (pair) glassesTypeSetting.set("g2");
const g1 = !!pair?.g1Firmware;
if (pair) glassesTypeSetting.set(g1 ? "g1" : "g2");
if (pair) {
savePairedGlassesIdentity({
serial: pair.serial ?? "",
@@ -385,6 +386,12 @@ export class PairingViewModel extends Observable {
this.dispose();
if (this.onboarding) {
setPreviewOnlyMode(false);
if (g1) {
// The G2 firmware check and flash pages don't apply: a G1's firmware is installed from a
// computer, and the session reports incompatible firmware if it lacks the display path.
finishOnboardingNavigation();
return;
}
// Continue the onboarding chain: check the glasses' firmware next.
Frame.topmost()?.navigate({ moduleName: "phone-ui/onboarding-firmware-check-page" });
return;