Yes that would be a nice feature also for testing the LCD and should be easy to implement for output only mode when no input is required :-) Input would require serial port like transport, keyboard, or on-screen keyboard that makes things a bit more complicated :-) Tomek
On Mon, Feb 17, 2025 at 8:11 PM Tim Hardisty <timhardist...@gmail.com> wrote: > > Just thinking out loud... > > Would NuttX benefit from a FrameBuffer stdout driver (e.g. /dev/fbcon) > that allowed a pipe/dup to replace stdout, or the use of > CONFIG_NSH_ALTSTDOUT and/or CONFIG_ALTSTDERR for console output? > > In my case, this is just for MCUboot messages in the case of bootloader > issues; to let the user know what's going on and, perhaps, guide the > user through recovery procedures. The LCD is the only display available, > as a serial console is not available to the user for this embedded > device. But could be a generally useful thing? > > On 16/02/2025 10:45, Alan C. Assis wrote: > > Hi Tim, > > > > I think there is not a framebuffer text in place for NuttX, but you can use > > the code to handle text fonts from nx graphics to render the text directly > > in the framebuffer. > > > > For Linux some years ago I used fbtext > > https://sourceforge.net/projects/fbtext/ to print a message from initrd to > > let user know a secret key the decript the disk. > > > > Alternatively if you want to print images in the screen you can use > > something like fbprint ( https://github.com/Weinsen/fbprint ). > > > > BR, > > > > Alan > > > > On Saturday, February 15, 2025, Tim Hardisty <timhardist...@gmail.com> > > wrote: > > > >> What is efficient solution to just do text though? > >> > >>> On 15 Feb 2025, at 13:42, Alan C. Assis <acas...@gmail.com> wrote: > >>> > >>> Hi Tim, > >>> > >>> You can create a NuttX application with LVGL and display your message or > >>> image. > >>> > >>> Actually you don't need to use a graphic library if you just want to > >> write > >>> in the framebuffer, you can convert image to display directly in the > >>> /dev/fb0 > >>> > >>> BR, > >>> > >>> Alan > >>> > >>>> On Sat, Feb 15, 2025 at 7:45 AM Tim Hardisty <timhardist...@gmail.com> > >>>> wrote: > >>>> > >>>> Hello NuttX Colleagues! > >>>> > >>>> During MCUboot I want to display text messages on the framebuffer LCD > >>>> driver (/dev/fb). This could either be via a FB console (useful for > >>>> other reasons) or a FB terminal, or something else. > >>>> > >>>> I also quite like the idea of my main graphics app - LVGL based - having > >>>> a console option (for syslog messages, perhaps), so perhaps LVGL is an > >>>> option, but I'm wanting to keep the size down of course. > >>>> > >>>> Which of the NuttX armoury of features might be a good choice for this? > >>>> > >>>> Thanks! > >>>> > >>>> TimJTi > >>>> > >>>> -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info