SSD1306 OLED and ULWOS2 scheduler TIM2 in encoder mode drived by rotary encoder is used to change PWM frequency and duty cicle on TIM1. Data displayed on OLED display. SSD1306 drivers supports Mikroe GLCD Font Creator.
References
Library supports C font array created by GLCD Font Creator by MikroElektronika.
https://www.mikroe.com/glcd-font-creator
Please refer to the following link to get more details about fonts.
https://os.mbed.com/users/dreschpe/code/SPI_TFT_ILI9341/
[ How to add new fonts ]
- Run GLCD Font Creator
- Click File-New Font-Import An Existing System Font
- Select font, style and size from font dialog.
- GLCD Font Cretor makes Bitmap fonts
- Click Export for GLCD menu
- Select mikroC tab.
- Copy generated code to fonts.c file.
- Modify data type from unsigned short to uint8_t
- Add optional bytes (offset, width, height, bpl, staring char) to the array. open fonts.c for details.
- Add extern declaration to fonts.h file.