Modification of SLC FREE 2 AFR Gauge Firmware for OLED Display

The open-source SLC FREE 2 AFR gauge is great, however when paired with OLED 1602 display SEH1602A the original 14point7 supplied firmware does not work properly. The display content is shifted and on same line.

There are 2 byte sequences that need to be modified in the LCD.asm file:

Left: original, Right: modified
LCD_DISP_INC:       equ    06h
LCD_4BIT_2LINE:     equ    28h

In order for this modification to preserve across builds you need to lock the LCD module in Cypress PSoC designer to prevent it from reverting itself back to the original version.

After this modification the OLED display will work properly (first image) and compatibility with traditional LCD display (second image) is also preserved.

Leave a Reply

Your email address will not be published. Required fields are marked *