tinygo-org / playground Goto Github PK
View Code? Open in Web Editor NEWTinyGo playground and VS Code extension
Home Page: https://play.tinygo.org/
License: BSD 3-Clause "New" or "Revised" License
TinyGo playground and VS Code extension
Home Page: https://play.tinygo.org/
License: BSD 3-Clause "New" or "Revised" License
We need to support compilation for SAMD21 based boards.
This doesn't show up in the console
print("ABC") // no output
This does
print("ABC\n") // output: ABC
This works
println("ABC") // output: ABC
This "too"
print("ABC")
print("DEF") // output: ABCDEF
In order to update to Go 1.18 the docker container/runner needs to be updated to use Go modules.
We need to have support for a "button" part so we can make it interactive.
The error "upstream request timeout" is occurring frequently on the Playground website when trying to download code using the "Flash" button.
I do not have the same issue/slowness when compiling inside the web interface for the simulator.
Currently, Tthe compiler can only handle creating HEX files for download. We also need to be able to compile UF2 format files.
I am unable to compile any programs on the TinyGo Playground website:
This is the output in the right pane:
LinkError: WebAssembly.instantiate(): Import #8 module="env" function="syscall/js.valueNew" error: function import requires a callable
I think there are some updates that are still pending that are used for the serverless compilation?
The LED in the Arduino UNO example does not blink in the browser.
Tested at https://play.tinygo.org/
I am using Ubuntu 20.04 and a Firefox (latest version)
We need support for the Circuit Playground Bluefruit
This program works as expected on the actual hardware (red/blue LEDs) but on the simulator is red/green:
package main
import (
"image/color"
"machine"
"time"
"tinygo.org/x/drivers/ws2812"
)
var leds [10]color.RGBA
var led = machine.LED
var neo = machine.NEOPIXELS
func main() {
led.Configure(machine.PinConfig{Mode: machine.PinOutput})
neo.Configure(machine.PinConfig{Mode: machine.PinOutput})
ws := ws2812.New(neo)
rg := false
for {
rg = !rg
for i := range leds {
rg = !rg
if rg {
leds[i] = color.RGBA{R: 0xff, G: 0x00, B: 0x00}
} else {
leds[i] = color.RGBA{R: 0x00, G: 0x00, B: 0xff}
}
}
ws.WriteColors(leds[:])
led.Set(rg)
time.Sleep(100 * time.Millisecond)
}
}
I get this message and I can't run it locally.
LinkError: import object field 'syscall/js.finalizeRef' is not a Function
end:
windows10 pro 64bit
tinygo 64d51b215f63a3b178c6337ab252086d16003ff7
git clone --recursive https://github.com/tinygo-org/tinygo.git tinygo5
cd tinygo5
git checkout dev
make llvm-build
make
make gen-device
make wasi-libc
make release
It would be great if I could share a code snippet with other people like https://play.golang.org/ (Share button).
TypeError: WebAssembly.instantiate(): Import #0 module="wasi_snapshot_preview1" error: module is not an object or function
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.