PicoMite V6.00.02 release candidates - all versions


Author Message
ville56
Guru

Joined: 08/06/2022
Location: Austria
Posts: 376
Posted: 04:02pm 13 Mar 2025      

@Peter:

minimalistic code for FT6336 test. Runs on RC0, RP2350,

resistive:
 OPTION RESET pico-restouch-lcd-3.5 (LCD in RLandscape mode, but doesn't matter)
 Option gui controls 70

capacitive:
PicoMite MMBasic RP2350A Edition V6.00.02RC0
 OPTION SYSTEM SPI GP2,GP3,GP4
 OPTION SYSTEM I2C GP0,GP1
 OPTION FLASH SIZE 4194304
 OPTION CPUSPEED  150000 'KHz
 OPTION LCDPANEL ILI9341, RLANDSCAPE,GP5,GP6,GP7,GP8,INVERT
 OPTION GUI CONTROLS 70
 OPTION TOUCH FT6336 GP9,GP10,,50
 GUI CALIBRATE 1, 311, 12, -10358, 11920
 OPTION SDCARD GP11

 
 gui delete all
 cls
 
 gui interrupt d_isr, u_isr
 'GUI BUTTON #1, "up|dn", 100, 100, 50, 50, rgb(white), rgb(black)
 
 do
 print touch(x), touch(y)
 pause 200
 loop
 
sub d_isr
 print "down"
end sub
 
sub u_isr
 print "up"
end sub


on touch/touch release the subs are called and valid coordinates are reported with resistive panels. With capacitive panels only coordinates are reported on touch.