AtomVM v0.6.4 has been released. It includes better support for #Elixir.
exatomvm Elixir library has been updated too, and now support all recent additions.
After writing a whole bunch of PIO assembly and getting it to work with interrupt handlers I am stumped by the simplest of things: printing to serial.
Using https://github.com/earlephilhower/arduino-pico on a r-pi pico, the following minimum working example emits no output when I pull GP2 low, even though the LED lights up, indicating the `if()` branch is entered.
```
#include <Arduino.h>
void setup() {
pinMode(2, INPUT_PULLUP);
pinMode(25, OUTPUT);
Serial.begin(115200);
}
void loop() {
digitalWrite(25, LOW);
if (digitalRead(2) == LOW) {
Serial.println("XXXXXXXXXXXXXXXXXXXXX");
digitalWrite(25, HIGH);
}
delay(50);
}
```
If I remove the `if()` it works, so somehow being _inside_ the `if()` is the issue.
I thought it might be a buffering issue on the desktop side, so wrote a quick minimal serial reader with no buffering and got the same results.
Any thoughts?