| Electronic Components Datasheet Search |
|
DFR0347 Datasheet(PDF) 5 Page - DFROBOT |
|
|
|||||||||||||||||||||||||||||
DFR0347 Datasheet(HTML) 5 Page - DFROBOT |
|
5 / 7 page ![]() Touch screen Smaple code #include <SPI.h> #include <DmTftIli9341.h> #include <DmTouch.h> #include <utility/DmTouchCalibration.h> DmTftIli9341 tft = DmTftIli9341(10,9); DmTouch dmTouch = DmTouch(DmTouch::DM_TFT28_105); DmTouchCalibration calibration = DmTouchCalibration(&tft, &dmTouch); bool calibrated = false; uint16_t x=0, y=0 ; void setup() { dmTouch.setCalibrationMatrix(calibration.getDefaultCalibrationData((int)DmT ouch::DM_TFT28_105)); tft.init(); dmTouch.init(); } void loop() { bool touched = true; if (dmTouch.isTouched()) { dmTouch.readTouchData(x,y,touched);//(x, y) coordinates read contacts calibration.drawCalibPoint(x, y);//In a display of contact } } |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |