You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
You must read data from serial before writing again. I am using a Parallax Serial LCD, which doesn't send data, if this is a device-specific problem.
To Reproduce
Import this code.
serial.redirect(pins.TX,pins.RX,BaudRate.BaudRate2400)letbuf=pins.createBuffer(2)buf.setNumber(NumberFormat.Int8LE,0,0x11)// Backlight onbuf.setNumber(NumberFormat.Int8LE,1,0x0c)// Form feedserial.writeBuffer(buf)loops.pause(5)// The display requires this after a form feedserial.writeString("Test")// Display shows "Te"// serial.readString() // Workaround (uncomment this line)// serial.writeString("Test") // Workaround (uncomment this line)// Display shows "Test", not "TestTest"
Expected behavior
I expected the display to show "Test" and not have to run the last two lines.
Desktop (please complete the following information):
OS: macOS 10.15.6
Browser: Chrome
Version: 85
Note: I'm sorry if this belongs in microsoft/pxt - let me know and I'll make it there
The text was updated successfully, but these errors were encountered:
Describe the bug
You must read data from serial before writing again. I am using a Parallax Serial LCD, which doesn't send data, if this is a device-specific problem.
To Reproduce
Import this code.
Expected behavior
I expected the display to show "Test" and not have to run the last two lines.
Desktop (please complete the following information):
Note: I'm sorry if this belongs in microsoft/pxt - let me know and I'll make it there
The text was updated successfully, but these errors were encountered: