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
#define TOUCH_CHANGE_CONFIG 0 | |
//these defines are specific to the NEWT breakout board = https://www.crowdsupply.com/phambili/newt | |
#define BUTTON_A 14 | |
#define BUTTON_A_NAME GPIO_NUM_14 | |
#define BUTTON_A_TOUCH_NAME TOUCH_PAD_NUM14 | |
#define BUTTON_B 13 | |
#define BUTTON_B_NAME GPIO_NUM_13 | |
#define BUTTON_B_TOUCH_NAME TOUCH_PAD_NUM13 |
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
# NOTE: Make sure you've created your secrets.py file before running this example | |
# https://learn.adafruit.com/adafruit-pyportal/internet-connect#whats-a-secrets-file-17-2 | |
import board | |
from adafruit_pyportal import PyPortal | |
# Set a data source URL | |
TEXT_URL = "http://wifitest.adafruit.com/testwifi/index.html" | |
# Create the PyPortal object | |
pyportal = PyPortal(url=TEXT_URL, status_neopixel=board.NEOPIXEL) |
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
stBLACK = 0x000000 | |
stRED = 0xFF0000 | |
stBLUE = 0x0000FF | |
tftWidth =480 | |
tftHeight = 320 | |
import board | |
import terminalio | |
import displayio |