Format code

This commit is contained in:
Michal Moskal 2016-06-25 19:40:21 +01:00
parent 31002ae1a8
commit b862cfc4ec

View File

@ -580,6 +580,15 @@ namespace pxsim.pins {
// 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) {
let pin = getPin(pinId);
if (!pin) return;