ucg_config.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef __UCG_CONFIG_H__
  2. #define __UCG_CONFIG_H__
  3. // ***************************************************************************
  4. // Configure Ucglib fonts
  5. //
  6. // Add a UCG_FONT_TABLE_ENTRY for each font you want to compile into the image
  7. #define UCG_FONT_TABLE_ENTRY(font)
  8. #define UCG_FONT_TABLE \
  9. UCG_FONT_TABLE_ENTRY(font_7x13B_tr) \
  10. UCG_FONT_TABLE_ENTRY(font_helvB08_hr) \
  11. UCG_FONT_TABLE_ENTRY(font_helvB10_hr) \
  12. UCG_FONT_TABLE_ENTRY(font_helvB12_hr) \
  13. UCG_FONT_TABLE_ENTRY(font_helvB18_hr) \
  14. UCG_FONT_TABLE_ENTRY(font_ncenB24_tr) \
  15. UCG_FONT_TABLE_ENTRY(font_ncenR12_tr) \
  16. UCG_FONT_TABLE_ENTRY(font_ncenR14_hr)
  17. #undef UCG_FONT_TABLE_ENTRY
  18. //
  19. // ***************************************************************************
  20. // ***************************************************************************
  21. // Enable display drivers
  22. //
  23. // Uncomment the UCG_DISPLAY_TABLE_ENTRY for the device(s) you want to
  24. // compile into the firmware.
  25. //
  26. // UCG_DISPLAY_TABLE_ENTRY(ili9163_18x128x128_hw_spi, ucg_dev_ili9163_18x128x128, ucg_ext_ili9163_18) \
  27. // UCG_DISPLAY_TABLE_ENTRY(ili9341_18x240x320_hw_spi, ucg_dev_ili9341_18x240x320, ucg_ext_ili9341_18) \
  28. // UCG_DISPLAY_TABLE_ENTRY(pcf8833_16x132x132_hw_spi, ucg_dev_pcf8833_16x132x132, ucg_ext_pcf8833_16) \
  29. // UCG_DISPLAY_TABLE_ENTRY(seps225_16x128x128_uvis_hw_spi, ucg_dev_seps225_16x128x128_univision, ucg_ext_seps225_16) \
  30. // UCG_DISPLAY_TABLE_ENTRY(ssd1351_18x128x128_hw_spi, ucg_dev_ssd1351_18x128x128_ilsoft, ucg_ext_ssd1351_18) \
  31. // UCG_DISPLAY_TABLE_ENTRY(ssd1351_18x128x128_ft_hw_spi, ucg_dev_ssd1351_18x128x128_ft, ucg_ext_ssd1351_18) \
  32. // UCG_DISPLAY_TABLE_ENTRY(ssd1331_18x96x64_uvis_hw_spi, ucg_dev_ssd1331_18x96x64_univision, ucg_ext_ssd1331_18) \
  33. // UCG_DISPLAY_TABLE_ENTRY(st7735_18x128x160_hw_spi, ucg_dev_st7735_18x128x160, ucg_ext_st7735_18) \
  34. #define UCG_DISPLAY_TABLE_ENTRY(binding, device, extension)
  35. #define UCG_DISPLAY_TABLE \
  36. UCG_DISPLAY_TABLE_ENTRY(ili9341_18x240x320_hw_spi, ucg_dev_ili9341_18x240x320, ucg_ext_ili9341_18) \
  37. UCG_DISPLAY_TABLE_ENTRY(st7735_18x128x160_hw_spi, ucg_dev_st7735_18x128x160, ucg_ext_st7735_18) \
  38. #undef UCG_DISPLAY_TABLE_ENTRY
  39. //
  40. // ***************************************************************************
  41. #endif /* __UCG_CONFIG_H__ */