You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Jon-ICS Even the most basic draw call results in a segmentation fault in node.
var lcdObj = require('jsupm_i2clcd');
var oled = new lcdObj.EBOLED();
var tBuffer = new Uint8Array(1);
tBuffer[0] = 0xfe;
var error = oled.draw(tBuffer, 1);
There is no test or sample for the draw function to verify it actually works either. The rest of the functionality in EBOLED works - clear, setCursor, home and write. Any help or a working sample would be very appreciated if this function is indeed functional.
The text was updated successfully, but these errors were encountered:
Found the issue. You cannot use a Javascript native Uint8Array to pass to draw. It must be a carray defined by swig. The following code works as expected.
var lcdObj = require('jsupm_i2clcd');
var oled = new lcdObj.EBOLED();
var tBuffer = new new lcdObj.uint8Array(1);
tBuffer.setitem(0, 0xfe);
var error = oled.draw(tBuffer, 1);
@Jon-ICS Even the most basic draw call results in a segmentation fault in node.
https://github.com/intel-iot-devkit/upm/blob/master/src/lcd/eboled.h
There is no test or sample for the draw function to verify it actually works either. The rest of the functionality in EBOLED works - clear, setCursor, home and write. Any help or a working sample would be very appreciated if this function is indeed functional.
The text was updated successfully, but these errors were encountered: