The command loadBMP( , ) of the Adafruit ImageReader Library reads a bitmap image into the RAM of an Arduino board from an SD card. I want to transfer such an image directly from my computer via WiFi.
More specifically, I have got an Arduino UNO WIFI Rev2 and I need the bmp file in the RAM in a form suitable for the draw( , , ) function of the above library to display it on an Adafruit tft.
Is it possible? I guess so but, being a layman in programming, I need simple commands like the ones quoted or sketches as intelligibly explained as is customary in Arduino and Adafruit examples. Any help would be welcome.
Gabor Halasz
Reading bitmap images from a computer
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- jim_lee
- Posts: 709
- Joined: Thu May 24, 2012 8:24 pm
Re: Reading bitmap images from a computer
ON an UNO? that would be a little rough with such a small RAM space. BUT.. You probably could transfer the file from Wifi to temp file on your SD card. Then use the library that you already know to draw that temp file to the display.
-jim lee
-jim lee
- halasz
- Posts: 6
- Joined: Tue Aug 11, 2020 12:03 pm
Re: Reading bitmap images from a computer
Jim,
Thank you for your reply.
My board is a UNO WIFI Rev2 and, for one thing, it has got a much bigger RAM than the UNO. For another, the image I have in mind occupies only a small part of the display. Therefore, unless the file transfer needs much additional RAM, the RAM size would not cause any problem.
The two step solution you are suggesting would also suit me.
Gabor
Thank you for your reply.
My board is a UNO WIFI Rev2 and, for one thing, it has got a much bigger RAM than the UNO. For another, the image I have in mind occupies only a small part of the display. Therefore, unless the file transfer needs much additional RAM, the RAM size would not cause any problem.
The two step solution you are suggesting would also suit me.
Gabor
- halasz
- Posts: 6
- Joined: Tue Aug 11, 2020 12:03 pm
Re: Reading bitmap images from a computer
Unfortunately, I don't even know how to send files from a computer to an SD card of a board via a wired connection, let alone via WiFi. (My board is an Arduino UNO WIFI Rev2, attached to it an Adafruit tft display breakout having an SD socket.)
- jim_lee
- Posts: 709
- Joined: Thu May 24, 2012 8:24 pm
Re: Reading bitmap images from a computer
Well, can you send them through WiFi? As a big 'Ol stream of data bytes? I guess that would be your first problem to work on.
-jim lee
-jim lee
Please be positive and constructive with your questions and comments.