Add readme to i2c fram module

This commit is contained in:
Michal Moskal
2016-04-05 18:21:15 -07:00
parent 65d48f4b02
commit 715771b991
3 changed files with 34 additions and 1 deletions

View File

@@ -8,7 +8,9 @@ function toBuf(arr: number[]) {
return buf
}
i2c_fram.writeBuffer(98, toBuf([1,2,3,4,5,6,7]))
i2c_fram.writeBuffer(98, toBuf([1, 2, 3, 4, 5, 6, 7]))
console.log("100:" + i2c_fram.readByte(100))
console.log("101:" + i2c_fram.readByte(101))