Hallo !
I am bulding SDR receiver for my own fun. I am using mikromedia7 capacitive with STM32H743ZIT6
I have troubles with running FT5426 .
FT5426 is working ( CTP-INT#) is going down and up when touching TFT ) but i can not read registers .
I have no using TF5XX6 library - when I try start using : FT5XX6_SetDefaultMode() - messages box gives me this :
"Call signature does not match the function definition signature 'FT5XX6_gesture_decoder' __Lib_FT5XX6.mpas"
When I use I2C2, it is comunication on adress 0x38 but I am always reading "0" from registers.
Does FT5426 needs some configuration ? Application note gives no information about this. Looks like FT5426 is ready to use after reset.
There is no example for mikrobasic on Libstock.
Best regards ,
PS ' mikromedia7 Capacitive looks VERY nice
Mikromedia7Cap & mikrobasic & FT5426 CTP
Re: Mikromedia7Cap & mikrobasic & FT5426 CTP
Hi,
Can you please attach the project that you are trying to run ?
Regards,
Filip.
Can you please attach the project that you are trying to run ?
Regards,
Filip.
Re: Mikromedia7Cap & mikrobasic & FT5426 CTP
Hallo !
main:
syskonfig() ' start of SSD1963 and "I2C2_Init_Advanced(20000, @_GPIO_MODULE_I2C2_PF10)"
clsb() ' clear screen black
kolor(31,63,31) ' color white
czcionka =2 ' font number 2
Text="FT5426 Test"
xtext=100
ytext=100
pisz() ' write on screen
TPWAKE =0
delay_ms(50)
TPRST = 0
delay_ms(20)
TPRST = 1
tpreg=0x02
tt:
if TPINT=1 then
goto tt
end if
tt2:
if TPINT = 0 then
goto tt2
end if
I2C2_Start()
I2C2_Write(0x38, tpreg, 1, END_MODE_stop)
I2C2_Start()
I2C2_Read(0x38, tpbyte, 1, END_MODE_stop)
bytetostr(tpbyte,text)
xtext=10
ytext=10
pisz() ' write on screen
goto tt
end.
I have read this applilication note :
https://www.newhavendisplay.com/resourc ... Ver0.1.pdf
Register 0x02 should give me number of touch points ( for example 1 ) but always gives me "0". Other registers gives me "0" too.
main:
syskonfig() ' start of SSD1963 and "I2C2_Init_Advanced(20000, @_GPIO_MODULE_I2C2_PF10)"
clsb() ' clear screen black
kolor(31,63,31) ' color white
czcionka =2 ' font number 2
Text="FT5426 Test"
xtext=100
ytext=100
pisz() ' write on screen
TPWAKE =0
delay_ms(50)
TPRST = 0
delay_ms(20)
TPRST = 1
tpreg=0x02
tt:
if TPINT=1 then
goto tt
end if
tt2:
if TPINT = 0 then
goto tt2
end if
I2C2_Start()
I2C2_Write(0x38, tpreg, 1, END_MODE_stop)
I2C2_Start()
I2C2_Read(0x38, tpbyte, 1, END_MODE_stop)
bytetostr(tpbyte,text)
xtext=10
ytext=10
pisz() ' write on screen
goto tt
end.
I have read this applilication note :
https://www.newhavendisplay.com/resourc ... Ver0.1.pdf
Register 0x02 should give me number of touch points ( for example 1 ) but always gives me "0". Other registers gives me "0" too.
Re: Mikromedia7Cap & mikrobasic & FT5426 CTP
Hallo !
Any help ?
Best Regards.
Any help ?
Best Regards.
Re: Mikromedia7Cap & mikrobasic & FT5426 CTP
Hi,
I apologize for the delay, I'm working on this right now, I will inform you ASAP.
Regards,
Filip.
I apologize for the delay, I'm working on this right now, I will inform you ASAP.
Regards,
Filip.
Re: Mikromedia7Cap & mikrobasic & FT5426 CTP
Ok,
Thank You .
Best regards.
Thank You .
Best regards.