/ORANGEpico_Touch

Touch sensor demo for ORANGE pico

Primary LanguageLuaMIT LicenseMIT

ORANGEpico_Touch

Control sample of Touch sensor XPT2046 for ORANGE pico.

ORANGE pico series are small computer of PicoSoft.
Support language is BASIC.
Refer: http://www.picosoft.co.jp/orange/

Tested equipment

Tested on "ORANGE pico pocket" purchased here.
https://booth.pm/ja/items/1134643

This pocket computer has a TFT module equipped with a touch panel controller XPT2046.
The TFT module is 2.4 inches 240 x 320 dots.
Pictures of the same product as this TFT module is shown below.
Touch sensor pin is lower right 5 pins.

ORANGE pico GPIO to sensor pins of TFT module connections

GPIO TFT module
PORT1 T_IRQ
PORT2 T_DO
PORT3 T_DIN
PORT4 T_CS
PORT100 T_CLK

Sample program

Support Functions

  • Screen clear
  • Pen color selection
  • Pen thickness selection

Program list

drawing_sample.bas  -- BASIC program sample  
drawing_sample.lua  -- Sample of inputting BASIC by serial communication with Lua  
                       Used in connection with FlashAir  

Licence

MIT

Author

GitHub/AoiSaya
Twitter ID @La_zlo