Skip to content

Commit

Permalink
Added M128BY192_4_3_Zmap.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmerlin committed Jun 12, 2024
1 parent e7d2c69 commit b4b4d87
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions neomatrix_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,10 @@ uint32_t tft_spi_speed;
#pragma message "M128BY192 read from /root/NM/gfxdisplay"
const uint16_t MATRIX_TILE_WIDTH = 128;
const uint16_t MATRIX_TILE_HEIGHT= 192;
#elif GFXDISPLAY_M128BY192_4_3_Zmap
#pragma message "M128BY192_4_3_Zmap read from /root/NM/gfxdisplay"
const uint16_t MATRIX_TILE_WIDTH = 128;
const uint16_t MATRIX_TILE_HEIGHT= 192;
#elif GFXDISPLAY_M128BY192_4_3
#pragma message "M128BY192_4_3 read from /root/NM/gfxdisplay"
const uint16_t MATRIX_TILE_WIDTH = 128;
Expand Down Expand Up @@ -1305,6 +1309,21 @@ void matrix_setup(bool initserial=true, int reservemem = 40000) {
defaults.pwm_dither_bits = 1;
defaults.led_rgb_sequence = "RBG";
defaults.panel_type = "FM6126A";
#elif GFXDISPLAY_M128BY192_4_3_Zmap
defaults.rows = 32;
defaults.cols = 64;
defaults.chain_length = 4;
defaults.parallel = 3;
defaults.pwm_lsb_nanoseconds = 100;
defaults.pwm_bits = 9;
// Time dithering of lower bits
// 2 changes speed from 400Hz (from 160Hz)
// or 520Hz with lsb_ns at 50 not 100
// but things are 1/3rd as bright so
// we go back to 0 for 333Hz with 50ns
defaults.pwm_dither_bits = 1;
//defaults.led_rgb_sequence = "RBG";
defaults.pixel_mapper_config = "V-mapper:Z;Rotate:90";
#elif GFXDISPLAY_M128BY192_4_3
defaults.rows = 32;
defaults.cols = 64;
Expand Down

0 comments on commit b4b4d87

Please sign in to comment.