Color Palette
The NanoVNA-H allows customization of trace colors and UI elements. This helps distinguish traces, improve visibility, or match personal preferences.
Color System
Section titled “Color System”The NanoVNA-H uses a palette of up to 32 colors stored in configuration. Each color is defined in 24-bit RGB format (0xRRGGBB).
View Current Colors
Section titled “View Current Colors”Via Shell Command
Section titled “Via Shell Command”colorThis displays all palette colors with their index and RGB values:
0: 0x000000 1: 0xFFFFFF 2: 0xFFFF00 3: 0x00FFFF 4: 0x00FF00 ...Change a Color
Section titled “Change a Color”Via Shell Command
Section titled “Via Shell Command”color {index} {rgb24}Parameters:
index: Palette position (0-31)rgb24: Color in hex RGB format (0xRRGGBB or decimal)
Examples:
color 2 0xFF8800 # Set color 2 to orangecolor 3 0x00FF00 # Set color 3 to greencolor 4 16711680 # Set color 4 to red (decimal)Palette Indices
Section titled “Palette Indices”Standard color assignments:
| Index | Default | Purpose |
|---|---|---|
| 0 | Black (0x000000) | Background |
| 1 | White (0xFFFFFF) | Grid lines, text |
| 2 | Yellow (0xFFFF00) | Trace 0 |
| 3 | Cyan (0x00FFFF) | Trace 1 |
| 4 | Green (0x00FF00) | Trace 2 |
| 5 | Magenta (0xFF00FF) | Trace 3 |
| 6 | Blue (0x0000FF) | Reference trace |
| 7 | Red (0xFF0000) | Markers |
| 8-15 | Various | UI elements |
| 16-31 | Various | Additional UI |
Save Color Changes
Section titled “Save Color Changes”Color changes are temporary until saved:
saveconfigWithout saving, colors reset to defaults on power cycle.
Practical Examples
Section titled “Practical Examples”High Contrast Traces
Section titled “High Contrast Traces”For better visibility outdoors:
color 2 0xFF0000 # Trace 0: Bright redcolor 3 0x0000FF # Trace 1: Bright bluecolor 4 0xFFFF00 # Trace 2: Yellowcolor 5 0x00FF00 # Trace 3: GreensaveconfigMuted Colors
Section titled “Muted Colors”For indoor use or screenshots:
color 2 0xCCCC00 # Trace 0: Muted yellowcolor 3 0x00CCCC # Trace 1: Muted cyancolor 4 0x00CC00 # Trace 2: Muted greencolor 5 0xCC00CC # Trace 3: Muted magentasaveconfigDark Theme
Section titled “Dark Theme”Keep background black, use bright traces:
color 0 0x000000 # Background: blackcolor 1 0x808080 # Grid: graycolor 2 0xFFFF00 # Trace 0: yellowsaveconfigRGB Color Reference
Section titled “RGB Color Reference”Common colors in hex:
| Color | RGB Hex |
|---|---|
| Black | 0x000000 |
| White | 0xFFFFFF |
| Red | 0xFF0000 |
| Green | 0x00FF00 |
| Blue | 0x0000FF |
| Yellow | 0xFFFF00 |
| Cyan | 0x00FFFF |
| Magenta | 0xFF00FF |
| Orange | 0xFF8000 |
| Purple | 0x8000FF |
| Gray | 0x808080 |
Reset to Defaults
Section titled “Reset to Defaults”To restore default colors:
clearconfigAlternatively, manually set each color back to its default value.
Color in config.ini
Section titled “Color in config.ini”Set colors at startup via config.ini:
# Custom color schemecolor 2 0xFF8800color 3 0x0088FFcolor 4 0x88FF00color 5 0xFF0088Display Considerations
Section titled “Display Considerations”Troubleshooting
Section titled “Troubleshooting”Colors Not Changing
Section titled “Colors Not Changing”- Verify the index is within valid range (0-31)
- Check hex format (0x prefix or correct decimal)
- Ensure command executed without errors
Colors Reset on Power Cycle
Section titled “Colors Reset on Power Cycle”- Run
saveconfigafter color changes - Verify configuration save completed
Color Looks Wrong
Section titled “Color Looks Wrong”- Display uses 16-bit color; some shades may shift
- Very dark colors may appear as black
- Try adjusting RGB values slightly
Shell Command Reference
Section titled “Shell Command Reference”# View all colorscolor
# Set a color (hex format)color 2 0xFF8800
# Set a color (decimal format)color 2 16744448
# Save colorssaveconfig