UNPKG

stk500-esm

Version:

A modern, ESM-compatible, TypeScript implementation of the STK500v1 protocol for programming Arduino boards directly from Node.js or the browser.

18 lines (17 loc) 495 B
const Resp_STK_INSYNC = 0x14; const Resp_STK_OK = 0x10; export default { Cmnd_STK_GET_SYNC: 0x30, Cmnd_STK_SET_DEVICE: 0x42, Cmnd_STK_ENTER_PROGMODE: 0x50, Cmnd_STK_LOAD_ADDRESS: 0x55, Cmnd_STK_PROG_PAGE: 0x64, Cmnd_STK_LEAVE_PROGMODE: 0x51, Cmnd_STK_READ_SIGN: 0x75, Sync_CRC_EOP: 0x20, Resp_STK_OK: 0x10, Resp_STK_INSYNC: 0x14, Resp_STK_NOSYNC: 0x15, Cmnd_STK_READ_PAGE: 0x74, OK_RESPONSE: new Uint8Array([Resp_STK_INSYNC, Resp_STK_OK]), };