Skip to main content

Getting Started

This packaged is not primarily intended to be used on its own but as it's functionality is essential to how the DeviceController package works it makes sense to have documentation of its inner workings

Installation

NPM

This package can be install directly through npm by using the following command

npm install @espruino-tools/uart

from here this can be imported like so

import { uart } from "@espruino-tools/uart";

CDN

To get started in a plain html page, you can use the unpkg link

just import as shown below

<script src="https://unpkg.com/@espruino-tools/uart@latest/min/main.min.js"></script>

From here you are ready to use the package like so

<script>
let UART = ESPT_uart;

UART.write("LED1.set();\n");
</script>