arduino / arduino-ide

Arduino IDE 2.x
https://www.arduino.cc/en/software
GNU Affero General Public License v3.0
2.23k stars 381 forks source link

Wa language support arduino-wasm3 #2512

Closed chai2010 closed 5 days ago

chai2010 commented 5 days ago

Describe the request

Wa is a general-purpose programming language designed for developing robustness and maintainability WebAssembly software. The wa languge support buildin arduino-wasm target.

https://github.com/wa-lang/wa

Tere is a example:

https://github.com/wa-lang/wa/tree/master/waroot/examples/arduino

import "syscall/arduino"

global LED = arduino.GetPinLED()

func init {
    arduino.PinMode(LED, 1)
    arduino.Print("凹语言(Wa)/Arduino is running ...\n")
    arduino.Print("https://wa-lang.org\n")

    for {
        arduino.DigitalWrite(LED, arduino.HIGH)
        arduino.Delay(100)
        arduino.DigitalWrite(LED, arduino.LOW)
        arduino.Delay(900)
    }
}

see https://wa-lang.org/smalltalk/st0052.html (chinese)

Describe the current behavior

Wa is new language, will it be supported?

Arduino IDE version

2

Operating system

N/A

Operating system version

all

Additional context

No response

Issue checklist

per1234 commented 5 days ago

Hi @chai2010. Thanks for taking the time to suggest a feature.

Arduino IDE is a tool for developing Arduino sketches, so we only support the Arduino programming language, as well as the related C++, C, and assembly languages that are provided by the GCC compiler. So we can not add support to Arduino IDE for the the unrelated Wa language.