summaryrefslogtreecommitdiff
path: root/website-emu/src/dev.js
blob: c4fe5fa16ea031984fbe4140000780da9c392920 (plain)
1
2
3
4
5
6
7
8
9
10
export function uart_push_line(line) {
  const elem = document.createElement("span");
  elem.classList.add("uart_line");
  elem.textContent = line;
  document.body.appendChild(elem);
}

export function log(line) {
  console.log(line);
}