UNPKG

@ongzzzzzz/p5.web-serial

Version:

A p5.js library for using the Web Serial API to access devices like Arduino, no setup required

26 lines (23 loc) 636 B
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>example web serial</title> <style> html, body { width: 100%; height: 100%; margin: 0; padding: 0; } </style> <script src="https://cdn.jsdelivr.net/npm/p5@1.3.1/lib/p5.js"> </script> </head> <body> <script language="javascript" type="text/javascript" src="https://cdn.jsdelivr.net/gh/ongzzzzzz/p5.web-serial/lib/p5.web-serial.js"></script> <script src="script.js"></script> </body> </html>