Hopefully this is the proper place the following question:
with the following code:
I2C1.setup({sda:D4,scl:D5});
//var result;
function m(){
var PAYLOAD = [];
var data = [];
for (var i = 0; i < 2; i++){
I2C1.writeTo(0x40,(i));
data = I2C1.readFrom(0x40,0x02);
PAYLOAD.push(data);
}
//result = PAYLOAD;
return PAYLOAD;
}
I get the following output:
_____ _
| __|___ ___ ___ _ _|_|___ ___
| __|_ -| . | _| | | | | . |
|_____|___| _|_| |___|_|_|_|___|
|_| http://espruino.com
1v86.tve_master_247bc37 Copyright 2016 G.Williams
Espruino is Open Source. Our work is supported
only by sales of official boards and donations:
http://espruino.com/Donate
Flash map 4MB:512/512, manuf 0xe0 chip 0x4016
>echo(0);
=undefined
>
=undefined
>m();
=[
new Uint8Array([113, 39]),
new Uint8Array(2)
]
>
My question(s):
1.- What is the purpose of displaying new Uint8Array([113, 39]), instead of [113, 39]?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hopefully this is the proper place the following question:
with the following code:
I get the following output:
My question(s):
1.- What is the purpose of displaying
new Uint8Array([113, 39]),
instead of[113, 39]
?