Search found 158 matches

by Thomas.Pahl@t-online.de
30 Mar 2024 09:09
Forum: mikroPascal PRO for AVR General
Topic: How to get text correct displayed on a TFT?
Replies: 14
Views: 1494

Re: How to get text correct displayed on a TFT?

I didn't think you give up that fast... :D

Have fun with electronics!
by Thomas.Pahl@t-online.de
28 Mar 2024 15:57
Forum: mikroPascal PRO for AVR General
Topic: How to get text correct displayed on a TFT?
Replies: 14
Views: 1494

Re: How to get text correct displayed on a TFT?

I do'nt know what's going on on your hardware. I can asure you, the rectangle function works very well. i use mikrobasic but the basic library is identical to mikropascal library. Your problem reminds me on a problem with the ili9481 i had. There is a bug in the library (TFT_Set_Address routine only...
by Thomas.Pahl@t-online.de
28 Mar 2024 08:00
Forum: mikroPascal PRO for AVR General
Topic: How to get text correct displayed on a TFT?
Replies: 14
Views: 1494

Re: How to get text correct displayed on a TFT?

you forgot to set the brush with the TFT_Set_Brush() function (with filled option set and background color set (white) without gradient)

right before the rectangle

Thomas
by Thomas.Pahl@t-online.de
04 Mar 2024 15:08
Forum: mikroPascal PRO for AVR General
Topic: How to get text correct displayed on a TFT?
Replies: 14
Views: 1494

Re: How to get text correct displayed on a TFT?

Hi,
delete the display space where you want to write the next characters with a filled rectangle with the background color.
alternativly you can rewrite the old text with background color again (at the same pixel place) and then write the new text.
by Thomas.Pahl@t-online.de
29 Feb 2024 07:06
Forum: mikroC PRO for PIC General
Topic: t6963 display problem in displaying integers
Replies: 5
Views: 395

Re: t6963 display problem in displaying integers

Perhaps timing problems.

For a test try the following: set the mcu clock frequency (in edit project) to 4 times the mcu really runs and test again.

If that runs, then better write your own library.
by Thomas.Pahl@t-online.de
28 Feb 2024 17:03
Forum: mikroBasic PRO for ARM General
Topic: Compiling Libraries for mikro basic
Replies: 2
Views: 577

Compiling Libraries for mikro basic

Hi every body, :D

1) is it possible to compile libraries with mikro C and use them in mikro basic?

2) Is it possible to compile libraries with necto and use them in mikro basic?

If possible, is there a need of special tools?

Thanks in advance
by Thomas.Pahl@t-online.de
27 Feb 2024 18:11
Forum: mikroC PRO for ARM General
Topic: USB HID Keyboard with stm32F429ZI MCU using mikro C Pro for ARM
Replies: 11
Views: 578

Re: USB HID Keyboard with stm32F429ZI MCU using mikro C Pro for ARM

perhaps this is easier for you: from HIDDevice_Keyboard_events_code.c // Initialise rest of MCU modules void InitMcu() { // Initialize SPI module hidEvent = 255; // Initialization of USB module UART3_Init_Advanced(9600, _UART_8_BIT_DATA, _UART_NOPARITY, _UART_ONE_STOPBIT, &_GPIO_MODULE_USART3_PB10_1...
by Thomas.Pahl@t-online.de
27 Feb 2024 16:39
Forum: mikroC PRO for ARM General
Topic: USB HID Keyboard with stm32F429ZI MCU using mikro C Pro for ARM
Replies: 11
Views: 578

Re: USB HID Keyboard with stm32F429ZI MCU using mikro C Pro for ARM

Hi emb, my code is in Mikro Basic not Bascom. There is no Bascom for ARM processors :D . It should work with ME's HID Host example. But you should translate my code to C and delete all lines that are special for my project. The library functions have the same name in Mikro Basic as in Mikro C so the...
by Thomas.Pahl@t-online.de
19 Feb 2024 14:42
Forum: mikroC PRO for ARM General
Topic: USB HID Keyboard with stm32F429ZI MCU using mikro C Pro for ARM
Replies: 11
Views: 578

Re: USB HID Keyboard with stm32F429ZI MCU using mikro C Pro for ARM

My project is not a tiny one (about 18000 lines) . I can only share the initiation routine. But you will not be happy with it. I am not too. But the problem is the library. ME never ever tested their library on arm. The device library works like a charm. But host library example is bad. Problem is t...
by Thomas.Pahl@t-online.de
16 Feb 2024 11:37
Forum: mikroC PRO for ARM General
Topic: USB HID Keyboard with stm32F429ZI MCU using mikro C Pro for ARM
Replies: 11
Views: 578

Re: USB HID Keyboard with stm32F429ZI MCU using mikro C Pro for ARM

GPIO_Alternate_Function_Enable(@_GPIO_MODULE_OTG_FS_PA89_10_11_12)

does the trick in Basic
by Thomas.Pahl@t-online.de
04 Feb 2024 18:03
Forum: mikroC PRO for PIC General
Topic: Send Interger data over UART1_Write_Text
Replies: 5
Views: 575

Re: Send Interger data over UART1_Write_Text

You should decide if you want to send the number as text or as number. If you want to send as text (you use uart_write_text) then you have to convert the integer into a string with IntToStr function. And on the receiver side should convert it back (with StrToInt function). If you want to send the in...
by Thomas.Pahl@t-online.de
13 Jan 2024 20:15
Forum: mikroC PRO for PIC32 General
Topic: FAT32 Library
Replies: 3
Views: 446

Re: FAT32 Library

I am using FAT32 with ARM processors. It is a great library. Never had problems. But you have to change the timeout values: SD_timeout.cmd_timeout = 100000 SD_timeout.spi_timeout = 1000000 SD_timeout.init_timeout = 100000000 These values are for SPI speed of 16MHz. Experiment with other values for y...
by Thomas.Pahl@t-online.de
13 Dec 2023 08:28
Forum: mikroBasic PRO for ARM General
Topic: Question about registry access
Replies: 2
Views: 218

Re: Question about registry access

MikroBasic knows these registers, look at STM32F103C8.MBAS in Defs folder.
by Thomas.Pahl@t-online.de
28 Nov 2023 11:21
Forum: mikroBasic PRO for ARM General
Topic: TFT_Ext_Image() with FAT32 library?
Replies: 3
Views: 402

Re: TFT_Ext_Image() with FAT32 library?

Thanks for that interesting example. I have a suggestion for your developers: when necto (in the far far future) gets basic and pascal support, why not realize this with translators instead of new compilers? pascal/basic -> c c -> pascal/basic would be of great learning and better exchange possibili...
by Thomas.Pahl@t-online.de
27 Nov 2023 19:45
Forum: mikroBasic PRO for ARM General
Topic: TFT_Ext_Image() with FAT32 library?
Replies: 3
Views: 402

TFT_Ext_Image() with FAT32 library?

Is it possible to use TFT_Ext_Image() with FAT32 library? How to get the start sector?

Thanks guys

Go to advanced search