from Hacker News

Render React to Embedded LCD

by doodlewind on 11/11/19, 12:01 PM with 2 comments

  • by doodlewind on 11/11/19, 12:01 PM

    I successfully build a React renderer that displays text and pixels on a 0.96-inch OLED screen. The renderer is built on top of a C driver for I2C protocol, which is used as a C module for the embeddable QuickJS engine. The whole codebase, including JS engine, C modules and React Reconciler, are compiled into binary within 780KB on a Raspberry Pi. This encourages me to try out React for developing Linux GUI in the future, hope you like it!
  • by dannypovolotski on 11/11/19, 8:36 PM

    Producing 760k of code for a Raspberry Pi (running a full blown non-realtime linux distribution) hardly seems like embedded development though.