Simple test

Ensure your device works with this simple test.

examples/rockblock_simpletest.py
 1# SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries
 2# SPDX-License-Identifier: MIT
 3
 4# pylint: disable=wrong-import-position
 5# CircuitPython / Blinka
 6import board
 7
 8uart = board.UART()
 9uart.baudrate = 19200
10
11# via USB cable
12# import serial
13# uart = serial.Serial("/dev/ttyUSB0", 19200)
14
15from adafruit_rockblock import RockBlock
16
17rb = RockBlock(uart)
18
19print(rb.model)