vahid4134
Members-
Posts
21 -
Joined
-
Last visited
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
I update repository and now works good. thank you.
-
Hi Is there any example use ltdc with https://github.com/ChibiOS/ChibiOS-Contrib. I test ugfx with STM32F429i-Discovery board on chibios 3 but not work.
-
I worked to integrated fribidi to show Bidirectional (Complex RTL and LTR) language in ugfx. This is my repository https://bitbucket.org/vahid_sohrabloo/ugfx I Tested on stm32f429 with ili9341 and correct work. I create fribidi folder in 3rdparty and create one example (fonts_bidi) Please check my code if no problem I create pull request.
-
you right. I am php programmer . if I can help please tell me
-
Hi I want to use custom font but any ttf file uploaded to ugfx.org/fontconvert.php say "Could not import font - bad file format?"
-
I worked on touch and widgets.
-
Finally Work. Horaaaaaaaaaaa. Very thank you inmarket . I very soon release my code and work on touch. But I change very litle in ugfx.
-
are you sure you're code is correct? I have error ./ugfx/src/gos/gos_mbed.h:52:9: error: 'gfxMutex' does not name a type typedef gfxMutex void;
-
sorry for my bad English. I have question. I Switch to Mbed 2. and try to display. I need to use mbed data type in H file (Muttex) In example. I don't know how to handle. I can't Use mbed.h in header but need datatype Mutex that defined in mbed.h. Just please help in Mutex functions.
-
Thank you. I need to use some type in mbed.h (need c++) to define in gos_xyz.h file like this in my header file need Mutex object type void gfxMutexInit(Mutex *pmutex); and in my cpp file void gfxMutexInit(Mutex *pmutex) { //todo *pmutex = new Mutex; }
-
did ugfx support unicode and RTL language such as Persian, arabic and ....
-
Thank you. I finaly compile with out error and runtime error. but on my dispay not show anything. I create new ili9341 to work with mbed spi void init_board(GDisplay *g){ _spi.format(8,0); _spi.frequency(100000); _CS=1; _DC=1; _reset=1; } void post_init_board(GDisplay *g) { (void) g; } void setpin_reset(GDisplay *g, bool_t state) { if (state == TRUE) { _reset=0; } else { _reset=1; } (void) g; // (void) state; } void setpin_dc(GDisplay *g, bool_t state) { if (state == TRUE) { _DC.write(1); } else { _DC.write(0); } (void) g; // (void) state; } void set_backlight(GDisplay *g, uint8_t percent) { (void) g; (void) percent; } void acquire_bus(GDisplay *g) { _CS = 0; } void release_bus(GDisplay *g) { _CS = 1; } void write_index(GDisplay *g, uint16_t index) { _DC.write(0); // 0=cmd _spi.write((int)index); // write 8bit _DC.write(1); // 1=data next } void write_data(GDisplay *g, uint16_t data) { _spi.write((int)index); // write 8bit } void setreadmode(GDisplay *g) { (void) g; } void setwritemode(GDisplay *g) { (void) g; } int16_t read_data(GDisplay *g) { return _spi.write(0); } and in my app coord_t width, height; coord_t i, j; gfxInit(); width = gdispGetWidth(); height = gdispGetHeight(); // Code Here gdispDrawBox(10, 10, width/2, height/2, Yellow);
-
I remove mbed.h and compile with gcc and not give me error.
-
I very try to fix this but I dont know how to fix. I include drivers/gdisp/ILI9341/gdisp_lld_ILI9341.c file but I have this error again /home/vahid/blinky2/yotta_modules/mbed-ugfx/source/src/gdisp/gdisp.c:607: undefined reference to `GDISPVMT_OnlyOne'
-
My g++ version gcc version 4.9.3 20150529 (release) [ARM/embedded-4_9-branch revision 224288] (GNU Tools for ARM Embedded Processors) Ok I change some code in ugfx to work correctly with g++ but now I have again problem this is my config file #define GFX_USE_OS_RAW32 TRUE /* GFX sub-systems to turn on */ #define GFX_USE_GDISP TRUE #define GFX_USE_GWIN TRUE #define GFX_USE_GINPUT TRUE #define GFX_USE_GEVENT TRUE #define GFX_USE_GTIMER TRUE #define GFX_USE_GQUEUE TRUE /* Features for the GDISP sub-system. */ #define GDISP_NEED_VALIDATION TRUE #define GDISP_NEED_CLIP TRUE #define GDISP_NEED_CIRCLE TRUE #define GDISP_NEED_TEXT TRUE #define GDISP_NEED_CONTROL TRUE #define GDISP_NEED_MULTITHREAD TRUE #define GQUEUE_NEED_ASYNC TRUE /* GDISP fonts to include */ #define GDISP_INCLUDE_FONT_UI2 TRUE /* Features for the GWIN subsystem. */ #define GWIN_NEED_WINDOWMANAGER FALSE #define GWIN_NEED_WIDGET FALSE #define GWIN_NEED_BUTTON FALSE /* Features for the GINPUT subsystem. */ #define GINPUT_NEED_MOUSE FALSE FAILED: : && /usr/bin/arm-none-eabi-g++ -fno-exceptions -fno-unwind-tables -Wl,--gc-sections -Wl,--sort-common -Wl,--sort-section=alignment -Wl,-wrap,main -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -T"/home/vahid/blinky2/yotta_targets/stm32f429i-disco-gcc/CMake/../ld/STM32F429ZI.ld" -Wl,-Map,source/blinky2.map -Wl,--start-group source/CMakeFiles/blinky2.dir/home/vahid/blinky2/source/blinky.cpp.o ym/mbed-drivers/source/mbed-drivers.a ym/mbed-unigraphic/source/mbed-unigraphic.a ym/mbed-ugfx/source/mbed-ugfx.a ym/mbed-drivers/source/mbed-drivers.a ym/mbed-hal/yotta_dummy_lib_mbed_hal/mbed-hal.a ym/cmsis-core/yotta_dummy_lib_cmsis_core/cmsis-core.a ym/minar/source/minar.a ym/core-util/source/core-util.a ym/mbed-hal-st/yotta_dummy_lib_mbed_hal_st/mbed-hal-st.a ym/cmsis-core-st/yotta_dummy_lib_cmsis_core_st/cmsis-core-st.a ym/minar-platform/yotta_dummy_lib_minar_platform/minar-platform.a ym/mbed-hal-st-stm32f4/source/mbed-hal-st-stm32f4.a ym/cmsis-core-stm32f4/source/cmsis-core-stm32f4.a ym/minar-platform-mbed/source/minar-platform-mbed.a ym/mbed-hal-st-stm32cubef4/source/mbed-hal-st-stm32cubef4.a ym/mbed-hal-st-stm32f429zi/source/mbed-hal-st-stm32f429zi.a ym/cmsis-core-stm32f429xi/source/cmsis-core-stm32f429xi.a ym/mbed-drivers/source/mbed-drivers.a ym/mbed-hal/yotta_dummy_lib_mbed_hal/mbed-hal.a ym/cmsis-core/yotta_dummy_lib_cmsis_core/cmsis-core.a ym/minar/source/minar.a ym/core-util/source/core-util.a ym/mbed-hal-st/yotta_dummy_lib_mbed_hal_st/mbed-hal-st.a ym/cmsis-core-st/yotta_dummy_lib_cmsis_core_st/cmsis-core-st.a ym/minar-platform/yotta_dummy_lib_minar_platform/minar-platform.a ym/mbed-hal-st-stm32f4/source/mbed-hal-st-stm32f4.a ym/cmsis-core-stm32f4/source/cmsis-core-stm32f4.a ym/minar-platform-mbed/source/minar-platform-mbed.a ym/mbed-hal-st-stm32cubef4/source/mbed-hal-st-stm32cubef4.a ym/mbed-hal-st-stm32f429zi/source/mbed-hal-st-stm32f429zi.a ym/cmsis-core-stm32f429xi/source/cmsis-core-stm32f429xi.a ym/compiler-polyfill/yotta_dummy_lib_compiler_polyfill/compiler-polyfill.a ym/ualloc/source/ualloc.a ym/dlmalloc/source/dlmalloc.a -Wl,-wrap,_malloc_r -Wl,-wrap,_calloc_r -Wl,-wrap,_realloc_r -Wl,-wrap,_free_r -Wl,-wrap,_sbrk_r ym/uvisor-lib/source/uvisor-lib.a -lstdc++ -lsupc++ -lm -lc -lgcc -lstdc++ -lsupc++ -lm -lc -lgcc -Wl,--end-group --specs=nano.specs -o source/blinky2 && cd /home/vahid/blinky2/build/stm32f429i-disco-gcc/source && /usr/bin/arm-none-eabi-objcopy -O binary blinky2 blinky2.bin && cd /home/vahid/blinky2/build/stm32f429i-disco-gcc/source && /usr/bin/arm-none-eabi-objcopy -O binary blinky2 blinky2.bin ym/mbed-ugfx/source/mbed-ugfx.a(gdisp.c.o): In function `_gdispInit()': /home/vahid/blinky2/yotta_modules/mbed-ugfx/source/src/gdisp/gdisp.c:607: undefined reference to `GDISPVMT_OnlyOne' I use ili9341.