mirror of
https://github.com/olikraus/u8g2.git
synced 2026-07-27 20:05:57 +00:00
Merge branch 'master' of https://github.com/olikraus/u8g2
This commit is contained in:
+4
-1
@@ -16,7 +16,10 @@ if(COMMAND register_component)
|
||||
register_component()
|
||||
else()
|
||||
add_library(u8g2 ${COMPONENT_SRCS})
|
||||
target_include_directories(u8g2 PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/csrc>" "$<INSTALL_INTERFACE:include>")
|
||||
target_include_directories(u8g2 PUBLIC
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/csrc>"
|
||||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/cppsrc>"
|
||||
"$<INSTALL_INTERFACE:include>")
|
||||
endif()
|
||||
|
||||
install(TARGETS u8g2
|
||||
|
||||
@@ -349,6 +349,7 @@ uint8_t u8x8_byte_rtthread_4wire_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_i
|
||||
break;
|
||||
|
||||
case U8X8_MSG_BYTE_START_TRANSFER:
|
||||
rt_spi_take_bus(&u8g2_spi_dev);
|
||||
u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_enable_level);
|
||||
u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->post_chip_enable_wait_ns, NULL);
|
||||
break;
|
||||
@@ -356,6 +357,7 @@ uint8_t u8x8_byte_rtthread_4wire_hw_spi(u8x8_t *u8x8, uint8_t msg, uint8_t arg_i
|
||||
case U8X8_MSG_BYTE_END_TRANSFER:
|
||||
u8x8->gpio_and_delay_cb(u8x8, U8X8_MSG_DELAY_NANO, u8x8->display_info->pre_chip_disable_wait_ns, NULL);
|
||||
u8x8_gpio_SetCS(u8x8, u8x8->display_info->chip_disable_level);
|
||||
rt_spi_release_bus(&u8g2_spi_dev);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include "SDL.h"
|
||||
#endif
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
//#define HEIGHT (64)
|
||||
//#define WIDTH 128
|
||||
|
||||
Reference in New Issue
Block a user