The Adafruit PyGamer is a ARM development board based on the Atmel ATSAMD51J19A family of SoC.
It has many built-in devices, such as a 1.8” 160x128 Color TFT Display, a dual-potentiometer analog stick, 4 x square-top buttons, 5 x NeoPixel LED, a triple-axis accelerometer, a light sensor, and a speaker. The PyGamer uses the ST7735 display, so you may use the tinygo-org st7735 driver. The accelerometer is the LIS3DH so you may use the tinygo lis3dh driver.
Interface | Hardware Supported | TinyGo Support |
---|---|---|
GPIO | YES | YES |
UART | YES | YES |
SPI | YES | YES |
I2C | YES | YES |
ADC | YES | YES |
PWM | YES | YES |
Documentation for the machine package for the Adafruit PyGamer
The PyGamer comes with the UF2 bootloader already installed.
Flash your TinyGo program to the board using this command:
tinygo flash -target=pygamer [PATH TO YOUR PROGRAM]
The PyGamer board should restart and then begin running your program.
Flash your TinyGo program to the board using this command:
tinygo flash -target=pygamer [PATH TO YOUR PROGRAM]
The PyGamer board should restart and then begin running your program.
Flash your TinyGo program to the board using this command:
tinygo flash -target=pygamer [PATH TO YOUR PROGRAM]
The PyGamer board should restart and then begin running your program.
If you have troubles getting your PyGamer board to receive code, try this:
tinygo flash -target=pygamer [PATH TO YOUR PROGRAM]
Once you have updated your PyGamer board the first time, after that you should be able to flash it entirely from the command line.
You can use the USB port to the PyGamer as a serial port. UART0
refers to this connection.