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# CircuitPython / Blinka
 5import board
 6
 7uart = board.UART()
 8uart.baudrate = 19200
 9
10# via USB cable
11# import serial
12# uart = serial.Serial("/dev/ttyUSB0", 19200)
13
14from adafruit_rockblock import RockBlock
15
16rb = RockBlock(uart)
17
18print(rb.model)