Lety is a live development environment for Pisces Moon OS. Currently targeting four real devices — LilyGO T-Deck Plus, LilyGO T-LoRa Pager, M5Stack Cardputer ADV, and the LCDwiki C28P — plus the KodeDot as a hypothetical fifth target for apps designed to port across ecosystems.
Use the device selector above the preview canvas to switch between
targets. Canvas dimensions, available input methods, and hardware
constraints all update live. Your #ifdef DEVICE_* blocks
are preprocessed before transpilation, so the device-specific branches
in your code run faithfully in the preview.
.cpp file that compiles into the
OS. Wired into apps.h and launcher.cpp on export../sd/apps/.Your code runs in a JavaScript interpreter that emulates the Pisces Moon HAL exactly. The same source compiles for real hardware via PlatformIO.
Supported in preview:
gfx->fillScreen, fillRect, drawRect,
drawLine, drawCircle, fillCircle,
setCursor, setTextColor, setTextSize,
print, println, printf.get_touch(&tx, &ty).update_trackball(), update_trackball_game().get_keypress().delay(ms), millis(), yield().C_* color constants.Not in preview, but compiles for hardware:
The ⚡ Build & Flash button is the moonshot — it
sends your source to the cloud build service, returns a compiled
.bin, and flashes it directly to your T-Deck via Web Serial.
Requires: Chrome, Edge, or Opera on desktop. T-Deck connected via USB-C. No PlatformIO install needed on your machine.
The Export button generates the final .cpp with proper
AGPL header, plus a sidecar integration.txt with exact
instructions for adding to apps.h and launcher.cpp.
Input mapping depends on the selected device. The hint bar below the canvas updates when you switch devices.
| T-Deck Plus | Mouse=Touch · Arrows=Trackball · Right-Alt+Enter=Click · Type=Keys |
| T-LoRa Pager | Arrows ↑↓=Rotary scroll · Enter=Rotary click · Type=Keys · no touch |
| Cardputer ADV | Type=Keys · Arrows=D-pad/cursor · no touch |
| C28P | Mouse=Touch · no keyboard · Native portrait |
| KodeDot | Mouse=Touch · Arrows=D-pad · Enter=A · Shift=B |
Requires: Chrome, Edge, or Opera on desktop (Web Serial). T-Deck Plus connected via USB-C.
Stream live WiFi, BLE, LoRa, and GPS detections from any Pisces Bridge device.
Requires: Chrome, Edge, or Opera on desktop (Web Serial). A Pisces Bridge device connected via USB. Get firmware →