fastlink30
-
Posts
80 -
Joined
-
Last visited
Content Type
Forums
Store
Downloads
Blogs
Posts posted by fastlink30
-
-
Beta
in uGFX-Studio
about the problem of 'generate', seems random, i not have investigated so much, but my impression is that some boolean flag remain not initialized or cleaned (inside the code of the studio) in some condition, and part of the files are generated.
i say this becouse i see happen if i press continously generate , 1st 'generate' make only 2 files, the 2nd 'generate' make all files, 3rd 2 files, 4th all files, but not ever... my 2 cent
i give lot of work to the uGFX team
-
Beta
in uGFX-Studio
1 problem solved, images.
1 have 2 files (rom_files.h)
1 in the root of the project to load audio data
1 in the output directory of the project (is in subdir inside the project) wich contains binary datas of images
i must merge the 2nd with the first and all is ok, no confort (i must remember everytime when i do update on the gui), but ok
1 tips
if i have 2 buttons (on different pages) that use the same image (ex: logout.gif)
after generate the romfiles.h contains 2 include at the same image (src/logout.gif) instead of 1
-
Beta
in uGFX-Studio
the problem was on the name of the image files, i changed the names (leaved blank & -)and now i can compile (i'm on windows with embitz)
a small problem, if outside the program i change the image (resize), the program show me the new image/size, but the button remain with the old size, i must change the 'custom draw' and size become correct
is possible for button widget add property that specify position of the text inside the button?
in my case i want show image, but text must be on the bottom of image, now stay in the center of image, also i can't specify the foreground/background
in the widgetstyle designer, can be very interesting if i can add new style from an existent style, so i can modify only the little things that i need without reenter all the parameters, this speed up much more creation of styles
on the generated code for the label i not see the setup for the 'enabled' parameter
another question, for what is intended the 'custom parameter' ? arbitrary data to pass for event handler?
another thing, if i press 'generate' (before i clean all the files on the output directory), sometimes happen that is writed only 2 files (main_sample.c, romfs_files.h) and 1 directory (rsc, with all the resource files), all the other files not, i must press another time 'generate' and all the files are generated.
i try now on my board (custom with ili9341 display), and i can see text of labels, but not the images of buttons, if i do the preview inside the studio i see all correctly..
before i use buttons as simple button and all was ok
inside the .zip file there are images of studio, of display output & the studio project
thanks
-
Beta
in uGFX-Studio
file attached
-
Beta
in uGFX-Studio
added an imagebox (with image) (with vs 0.12)
now i get this error
c:\EmBitz\OVEN_STM32F103\PAGE_GUI2\oven_f103\output\gui.c||In function 'createPageStartPage':|
c:\EmBitz\OVEN_STM32F103\PAGE_GUI2\oven_f103\output\gui.c|194|warning: implicit declaration of function 'gwinImageCreate' [-Wimplicit-function-declaration]|
c:\EmBitz\OVEN_STM32F103\PAGE_GUI2\oven_f103\output\gui.c|194|warning: assignment makes pointer from integer without a cast [enabled by default]|
c:\EmBitz\OVEN_STM32F103\PAGE_GUI2\oven_f103\output\gui.c|195|warning: implicit declaration of function 'gwinImageOpenFile' [-Wimplicit-function-declaration]|
c:\EmBitz\OVEN_STM32F103\PAGE_GUI2\oven_f103\output\gui.c|205|warning: assignment makes pointer from integer without a cast [enabled by default]|
bin\Debug\obj\c_drv_drv_\EmBitz\OVEN_STM32F103\PAGE_GUI2\oven_f103\output\gui.o||In function `createPageStartPage':|
c:\EmBitz\OVEN_STM32F103\PAGE_GUI2\oven_f103\output\gui.c:194||undefined reference to `gwinImageCreate'|
c:\EmBitz\OVEN_STM32F103\PAGE_GUI2\oven_f103\output\gui.c:195||undefined reference to `gwinImageOpenFile'|
c:\EmBitz\OVEN_STM32F103\PAGE_GUI2\oven_f103\output\gui.c:205||undefined reference to `gwinImageCreate'|
c:\EmBitz\OVEN_STM32F103\PAGE_GUI2\oven_f103\output\gui.c:206||undefined reference to `gwinImageOpenFile'|
-
Beta
in uGFX-Studio
display 320x240, if i put label with this coordinate x=0 y=226 w=320, h=14 , save project, close program, the next time i open the project i found the label at y=220
-
-
-
found the problem, is a path problem, i put an absolute path on include inside gfile\gfile_fs_rom.c (i know is really not good idea, but i want found the problem), and now the file is found, read, and i hope also played
on the makefile there are the path to the files romfs_files.h, so i not understand why is not included... must investigate more
-
the function ROMOpen not found the file in ROM, all the parameters seems good, so i think the files are not included on compilation
there are some particular things to do, to use GFILE functions? maybe i forgot some particular, i have enabled this 'flags'
#define GFILE_NEED_NATIVEFS FALSE
#define GFILE_NEED_ROMFS TRUE
#define GFX_USE_GAUDIO TRUEon chibios (3.0.3) i do nothing, to compile i use makefile, maybe this do some difference? compilation not show errors, and firmware correctly work
-
-
ok, done, but i have problem to load the file from ROM
gfxBufferAlloc is ok
when i try to open the file with gfileOpen, function fail (tryed with 'r' & 's')
i have used the same file on the example dir of demos\modules\gaudio\play-vs1053\
ronfs_files.h & romfs_allwrong.h
then included the file on the main.c with #include "romfs_files.h" (the bin file become more big, so datas are on the rom)
#define GFILE_NEED_NATIVEFS FALSE
#define GFILE_NEED_ROMFS TRUE
#define GFX_USE_GAUDIO TRUE
#define GFX_USE_GFILE TRUE
#define GAUDIO_NEED_PLAY TRUE
#define GAUDIO_NEED_RECORD FALSE
#define GQUEUE_NEED_BUFFERS TRUE
#define GQUEUE_NEED_GSYNC TRUE
.....
if (!gfxBufferAlloc(4, 512))
{
errmsg = "Err: No Memory";
goto theend;
}
repeatplay:
// Open the wave file
if (!(f = gfileOpen(MY_PLAY_FILE, "r")))
{
errmsg = "Err: Open WAV";
goto theend;
} -
i'm trying to use audio with ugfx, to be more precise, i want use a piezo buzzer controlled with pwm, i looked example play-vs1053, but not understand how to selected the type of hardware to use (VS1053,pwm,adc), in this example is loaded the file audio, played etc, but how to set the port where to send 'audio'?
there are other simple audio example with pwm? maybe i'm wrong but i not see
thanks
-
Beta
in uGFX-Studio
good to know this!
another request, possibility to align left/right/center on the label widget
-
Beta
in uGFX-Studio
some annotations
if you give same name to 2 different widgets on different pages, graphically nothing happen, but with code when you refer to 1 is possible that you change characteristics of the 2nd, better check on the studio if name of the widget already exists
after i have added listbox on page, when i compile now get this worning
c:/EmBitz/OVEN_STM32F103/ext/Tectu-ugfx-69de17687c30/src/gwin/gwin_list.c: In function 'gwinListDefaultDraw':
c:/EmBitz/OVEN_STM32F103/ext/Tectu-ugfx-69de17687c30/src/gwin/gwin_list.c:708:5: warning: #warning "GWIN: Lists display better when GDISP_NEED_CONVEX_POLYGON is turned on" [-Wcpp]
#warning "GWIN: Lists display better when GDISP_NEED_CONVEX_POLYGON is turned on" -
thanks
-
maybe stupid question, but how to change color of label text from code?
thanks
-
Beta
in uGFX-Studio
here there are
-
Beta
in uGFX-Studio
yes, #define GFILE_NEED_NATIVEFS FALSE solve the compilation error
1 small bug
if i insert icon file with - character, i get error when compile the generated code:
ddf79cd411e2/src/gfile/gfile_fs_rom.c:36:
c:/EmBitz/OVEN_STM32F103/PAGE_GUI/output/rsc/icona-pdf_66.h:7:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '-' token
static const char icona-pdf_66[] = {the name of the file is: icona-pdf_66
thanks
-
Beta
in uGFX-Studio
i try to compiling on stm32 - bare metal
with 1 imagebox and image file present:
/********************************************************/
/* GFILE stuff */
/********************************************************/
#define GFX_USE_GFILE TRUE
#define GFILE_NEED_NATIVEFS TRUE
#define GFILE_NEED_ROMFS TRUE
#define GFILE_MAX_GFILES 1without:
/********************************************************/
/* GFILE stuff */
/********************************************************/
#define GFX_USE_GFILE FALSE
#define GFILE_NEED_NATIVEFS TRUE
#define GFILE_NEED_ROMFS TRUE -
Beta
in uGFX-Studio
i found where is the problem, if i add imagebox on screen, when i compile i get error.
also another thing, if i press 'generate' the previous files are deleted, but not all the files are generated, i must press another time 'generate' and all is ok.
i use version 0.8
-
Beta
in uGFX-Studio
i had this problem
c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-openr.o): In function `_open_r':
openr.c:(.text._open_r+0x10): undefined reference to `_open'
c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-unlinkr.o): In function `_unlink_r':
unlinkr.c:(.text._unlink_r+0xc): undefined reference to `_unlink'
c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-linkr.o): In function `_link_r':
linkr.c:(.text._link_r+0xe): undefined reference to `_link'
c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-statr.o): In function `_stat_r':
statr.c:(.text._stat_r+0xe): undefined reference to `_stat'
collect2.exe: error: ld returned 1 exit status
make: *** [bin/Debug/OVEN_STM32F103R8.elf] Error 1
c:/EmBitz/OVEN_STM32F103R8/ext/Tectu-ugfx-ddf79cd411e2/tools/gmake_scripts/compiler_gcc.mk:282: recipe for target 'bin/Debug/OVEN_STM32F103R8.elf' failedafter some hours trying to understand why the compilation start make problem, i delete all the files made by uGfx studio and regenerated the files, now all the think goes well
i not know what (and if) i have changed something, but i think no, anyway, i write this maybe can help someone
p.s.: 4 requests for ugfx studio -> possibility to insert basic drawing (line, arc, box, etc) , when studio generate sources, possibility do separate all the screens in different files (now is all in one file) ,
import fonts, choose if insert main function or not on the generated files
thanks
-
today i have designed some screens with the ugfx studio, all ok, exported the files, removed the main from ugfx_gui.c and linked compile file on makefile
now when i compile i receive this error:
c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-openr.o): In function `_open_r':
openr.c:(.text._open_r+0x10): undefined reference to `_open'
c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-unlinkr.o): In function `_unlink_r':
unlinkr.c:(.text._unlink_r+0xc): undefined reference to `_unlink'
c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-linkr.o): In function `_link_r':
linkr.c:(.text._link_r+0xe): undefined reference to `_link'
c:/embitz/0.40/share/em_armgcc/bin/../lib/gcc/arm-none-eabi/4.8.4/../../../../arm-none-eabi/lib/armv6-m\libc.a(lib_a-statr.o): In function `_stat_r':
statr.c:(.text._stat_r+0xe): undefined reference to `_stat'
collect2.exe: error: ld returned 1 exit status
make: *** [bin/Debug/OVEN_STM32F103R8.elf] Error 1
c:/EmBitz/OVEN_STM32F103R8/ext/Tectu-ugfx-ddf79cd411e2/tools/gmake_scripts/compiler_gcc.mk:282: recipe for target 'bin/Debug/OVEN_STM32F103R8.elf' failedbefore this error, the compilation was ok, seems some library are missing..
-
compiled!
i have on makefile
GFXBOARD = MULTIBOARD_F407
but on board.h
#define BOARD_NAME "Multiboard F407"
changed to
#define BOARD_NAME "Multiboard_F407"
compile is ok
thank you tectu, now i must test how to include my program, not only ugfx & chibios.
Beta
in uGFX-Studio
Posted
i look too quick the generated code, and i not see the gwinDisable(), now i understand how the label are en/disabled :roll: my question was about this.