This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Display_ST7701.h" | |
spi_device_handle_t SPI_handle = NULL; | |
esp_lcd_panel_handle_t panel_handle = NULL; | |
void ST7701_WriteCommand(uint8_t cmd) | |
{ | |
spi_transaction_t spi_tran = { | |
.cmd = 0, | |
.addr = cmd, | |
.length = 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
*, *:before, *:after { | |
box-sizing: border-box; | |
} | |
html, body { | |
width: 100%; | |
height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// +Jonas Raoni Soares Silva | |
// @http://jsfromhell.com/math/is-point-in-poly [rev. #0] | |
// usage: | |
// points = [ {x: X1, y: Y1}, {x: X2, y: Y2}, ... , {x: Xn, y: Yn} ]; | |
// alert( isPointInPoly(points, {x: mouseX, y: mouseY}) ? "In" : "Out" ); | |
function isPointInPoly(poly, pt){ | |
for (var c = false, i = -1, l = poly.length, j = l - 1; ++i < l; j = i) | |
((poly[i].y <= pt.y && pt.y < poly[j].y) || (poly[j].y <= pt.y && pt.y < poly[i].y)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//---------------------------------------------------------------------- | |
//Instance of Symbol 46 MovieClip "btn_card_1" in Frame 3 | |
//---------------------------------------------------------------------- | |
onClipEvent (load) { | |
function giveScale(num) { | |
targetXscale = num; | |
targetYscale = num; | |
} | |
function givePos(numX, numY) { | |
targetXpos = numX; |