Simple test

Ensure your device works with this simple test.

examples/trellism4_simpletest.py
 1# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
 2# SPDX-License-Identifier: MIT
 3
 4import adafruit_trellism4
 5
 6trellis = adafruit_trellism4.TrellisM4Express()
 7
 8while True:
 9    pressed = trellis.pressed_keys
10    if pressed:
11        print("Pressed:", pressed)