Hi Zetsin,
I would like to run two graphical JavaScript applications on two separate displays. Right now, I'm using multiple Adafruit displays with a Raspberry Pi Zero W. They're registered as /dev/fb1 and /dev/fb2 via SPI and display overlays. I set an environmental variable via export SDL_FBDEV="/dev/fb1".
If I'm now running your test.js I end up with the error "No available video device" after I modified app.js slightly:
const SDL_error = require('../dep/SDL_error')
[...]
if(SDL.SDL_Init(flags) != 0) {
console.log(flags);
console.log(SDL_error.SDL_GetError());
this.quit()
return
}
Can you hint me how to use node-sdl2 with multiple dedicated framebuffer devices?
Cheers,
Uwe
Hi Zetsin,
I would like to run two graphical JavaScript applications on two separate displays. Right now, I'm using multiple Adafruit displays with a Raspberry Pi Zero W. They're registered as /dev/fb1 and /dev/fb2 via SPI and display overlays. I set an environmental variable via
export SDL_FBDEV="/dev/fb1".If I'm now running your test.js I end up with the error "No available video device" after I modified app.js slightly:
Can you hint me how to use node-sdl2 with multiple dedicated framebuffer devices?
Cheers,
Uwe