Skip to content

Commit 9785c94

Browse files
committed
boards: add PyPortal to list of supported boards
Signed-off-by: Ron Evans <[email protected]>
1 parent 7e24233 commit 9785c94

File tree

1 file changed

+83
-0
lines changed

1 file changed

+83
-0
lines changed
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
---
2+
title: "Adafruit PyPortal"
3+
weight: 3
4+
---
5+
6+
The [Adafruit PyPortal](https://www.adafruit.com/product/4116) is a ARM board based on the Microchip [ATSAMD51J20A](https://www.microchip.com/wwwproducts/en/ATSAMD51J20A) family of SoC.
7+
8+
The PyPortal also has an Espressif ESP32 Wi-Fi coprocessor with TLS/SSL support built-in. PyPortal has a 3.2″ 320 x 240 color TFT with resistive touch screen. PyPortal includes: speaker, light sensor, temperature sensor, NeoPixel, microSD card slot, 8MB flash, plug-in ports for I2C and 2 analog/digital pins,
9+
10+
## Interfaces
11+
12+
| Interface | Hardware Supported | TinyGo Support |
13+
| --------- | ------------- | ----- |
14+
| GPIO | YES | YES |
15+
| UART | YES | YES |
16+
| SPI | YES | YES |
17+
| I2C | YES | YES |
18+
| ADC | YES | YES |
19+
| PWM | YES | YES |
20+
21+
## Machine Package Docs
22+
23+
[Documentation for the machine package for the Adafruit PyPortal](../machine/pyportal)
24+
25+
## Flashing
26+
27+
### UF2
28+
29+
The PyPortal comes with the [UF2 bootloader](https://github.com/Microsoft/uf2) already installed.
30+
31+
### CLI Flashing on Linux
32+
33+
- Plug your PyPortal into your computer's USB port.
34+
- Flash your TinyGo program to the board using this command:
35+
36+
```shell
37+
tinygo flash -target=pyportal [PATH TO YOUR PROGRAM]
38+
```
39+
40+
- The PyPortal board should restart and then begin running your program.
41+
42+
### CLI Flashing on macOS
43+
44+
- Plug your PyPortal into your computer's USB port.
45+
- Flash your TinyGo program to the board using this command:
46+
47+
```shell
48+
tinygo flash -target=pyportal [PATH TO YOUR PROGRAM]
49+
```
50+
51+
- The PyPortal board should restart and then begin running your program.
52+
53+
### CLI Flashing on Windows
54+
55+
- Plug your PyPortal into your computer's USB port.
56+
- Double tap the "RESET" button on the board.
57+
- Wait until the PyPortal board appears as a flash drive.
58+
- Flash your TinyGo program to the board using this command:
59+
60+
```shell
61+
tinygo flash -target=pyportal [PATH TO YOUR PROGRAM]
62+
```
63+
64+
- The PyPortal board should restart and then begin running your program.
65+
66+
### Troubleshooting
67+
68+
If you have troubles getting your PyPortal board to receive code, try this:
69+
70+
- Press the "RESET" button on the board two times to get the PyPortal board ready to receive code.
71+
- The PyPortal board will appear to your computer like a USB drive.
72+
- Now try running the command as above:
73+
74+
75+
```shell
76+
tinygo flash -target=pyportal [PATH TO YOUR PROGRAM]
77+
```
78+
79+
Once you have updated your PyPortal board the first time, after that you should be able to flash it entirely from the command line.
80+
81+
## Notes
82+
83+
You can use the USB port to the PyPortal as a serial port. `UART0` refers to this connection.

0 commit comments

Comments
 (0)