Test results are for linux/amd64.
| Package | Importable | Passes tests |
|---|---|---|
| archive/tar | ✔ yes | ✗ no |
| archive/zip | ✔ yes | ✔ yes |
| bufio | ✔ yes | ✗ no |
| bytes | ✔ yes | ✗ no |
| cmp | ✔ yes | ✔ yes |
| compress/bzip2 | ✔ yes | ✔ yes |
Here are some helpful tips to use TinyGo with and an Arduino UNO Q board that is connected either via Android Debug Bridge (adb) or via SSH.
adb is useful for when you want to connect the Arduino UNO Q directly to your computer without a monitor or keyboard.
You can install the adb command line tool for your platform here:
https://developer.android.com/tools/releases/platform-tools
| adapter driver linuxgpiod | |
| adapter gpio swclk -chip 1 26 | |
| adapter gpio swdio -chip 1 25 | |
| adapter gpio srst -chip 1 38 | |
| transport select swd | |
| adapter speed 1000 | |
| reset_config srst_only srst_push_pull |
| // NOT true random number generation on RP2040 but good enough for quick demos. | |
| // Do not use in important production systems. | |
| // Seriously, don't. | |
| package main | |
| import ( | |
| "machine" | |
| "crypto/rand" | |
| ) |
| package main | |
| import ( | |
| "machine" | |
| "strconv" | |
| "time" | |
| "tinygo.org/x/drivers/wifinina" | |
| ) |
| package main | |
| import ( | |
| "machine" | |
| "machine/usb/hid" | |
| "machine/usb/hid/keyboard" | |
| "time" | |
| ) |
| // NUCLEO-L432KC | |
| // GND to GND | |
| // SCL to D5 | |
| // SDA to D4 | |
| package main | |
| import ( | |
| "fmt" | |
| "machine" | |
| "time" |
| package main | |
| import ( | |
| "machine" | |
| "time" | |
| ) | |
| var input [16]byte | |
| func main() { |
"Adding manpower to a late software project, makes it later." - Frederick P. Brooks Jr., The Mythical Man-Month: Essays on Software Engineering
"Learning is limited by an organization’s ability to keep its people." - Tom DeMarco
"A primary cause of complexity is that software vendors uncritically adopt almost any feature that users want." - Niklaus Wirth
"When executives ask for an 'estimate,' they’re often asking for a commitment or for a plan to meet a target." - Steve McConnell, Software Estimation: Demystifying the Black Art
"Time pressure gradually corrupts an engineer's standard of quality and perfection. It has a detrimental effect on people as well as products." - Niklaus Wirth