PH-DOC / 03.3
A 128×64 screen, four states.
The officer watches this panel: Ready, then Connected, then a progress bar, then DONE. The host drives the last two with SHOW and DONE. The firmware keeps drawing if the module is missing.
Wiring
| OLED pin | FireBeetle 2 ESP32-P4 |
|---|---|
| VCC | 3V3 |
| GND | GND |
| SDA | IO7 |
| SCL | IO8 |
Board pull-ups are 2.2 kΩ to 3V3, so the module's own pull-ups may stay. I2C defaults to address 0x3C and 400 kHz. Some modules use 0x3D. CONFIG_PH_OLED_ROTATE_180 flips the picture if a mount places the glass upside down. The repository does not specify an enclosure, a cable, or a particular OLED colour. The framebuffer is 1-bit.
What each state shows
| When | Layout in ph_screen.c |
|---|---|
| Power on | PocketHunter, a rule, the device ID, then Ready, No SD card, or another status such as Counter error. |
| Host configured, no SHOW yet | Connected, large, then “Start the PC from this device, or open START-HERE”. |
| SHOW pct text | A bar for 0–100, or no bar if pct is “-”. Text is word-wrapped to 3 lines of 21 characters. |
| DONE text | DONE at 3× scale, then the text. The officer sheet says to remove the device at DONE. The PC in boot mode switches itself off. |
The face is a 5×7 font in a 6×8 cell, so the panel is 21 columns by 8 rows. Glyphs are the Adafruit-GFX classic font, BSD, vendored in the firmware. The green user LED (GPIO3) is separate: it lights while a host has configured the USB device, and it is not a pixel on this panel.
