Loading files
701e58161This file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/tulipcc-498083946.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
// ui.c
// user interface components
#include "ui.h"
void send_touch_to_micropython(int16_t touch_x, int16_t touch_y, uint8_t up) {
// respond to finger down / up
if(touch_held && up) { // this is a finger up / click release
// If there's any text entry happening, in all cases, a touch up stops it
touch_held = 0;
tulip_touch_isr(up);
} else if(touch_held && !up) { // this is a continuous hold -- update sliders, etc
tulip_touch_isr(up);
} else if(!touch_held && !up) { // this is a new touch down
touch_held = 1;
tulip_touch_isr(up);
} else if(!touch_held && up) { // just moving the mouse around on desktop
//fprintf(stderr, "touch not held and up event\n");
}
}701e58161This file is pinned to the selected release. Download the original to open it in your design tool.