MCPcopy Create free account
hub / github.com/FastLED/FastLED / constructor

Method constructor

ci/docker_utils/avr8js/execute.ts:31–39  ·  view source on GitHub ↗
(hex: string)

Source from the content-addressed store, hash-verified

29 private stopped = false;
30
31 constructor(hex: string) {
32 loadHex(hex, new Uint8Array(this.program.buffer));
33 this.cpu = new CPU(this.program);
34 this.timer = new AVRTimer(this.cpu, timer0Config);
35 this.portB = new AVRIOPort(this.cpu, portBConfig);
36 this.portC = new AVRIOPort(this.cpu, portCConfig);
37 this.portD = new AVRIOPort(this.cpu, portDConfig);
38 this.usart = new AVRUSART(this.cpu, usart0Config, this.MHZ);
39 }
40
41 async execute(callback: (cpu: CPU) => void) {
42 this.stopped = false;

Callers

nothing calls this directly

Calls 1

loadHexFunction · 0.90

Tested by

no test coverage detected