Format code
This commit is contained in:
parent
31002ae1a8
commit
b862cfc4ec
@ -521,7 +521,7 @@ namespace pxsim.pins {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function createBuffer(sz:number) {
|
export function createBuffer(sz: number) {
|
||||||
return pxsim.BufferMethods.createBuffer(sz)
|
return pxsim.BufferMethods.createBuffer(sz)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -580,6 +580,15 @@ namespace pxsim.pins {
|
|||||||
// TODO
|
// TODO
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function i2cReadBuffer(address: number, size: number, repeat?: boolean): RefBuffer {
|
||||||
|
// fake reading zeros
|
||||||
|
return createBuffer(size)
|
||||||
|
}
|
||||||
|
|
||||||
|
export function i2cWriteBuffer(address: number, buf: RefBuffer, repeat?: boolean): void {
|
||||||
|
// fake - noop
|
||||||
|
}
|
||||||
|
|
||||||
export function analogSetPitchPin(pinId: number) {
|
export function analogSetPitchPin(pinId: number) {
|
||||||
let pin = getPin(pinId);
|
let pin = getPin(pinId);
|
||||||
if (!pin) return;
|
if (!pin) return;
|
||||||
|
Loading…
Reference in New Issue
Block a user