1.8 TFT BLE sense

I am failing to get off first base, trying to drive a 1.8" TFT display from a Nano BLE sense rev 2. Getting down to real basics, I can write an empty program that compiles fine for a nano and ble sense.

#include <SPI.h>
setup(){}
loop(){}

Then simply including the #include <TFT.h> at the beginning, it compiles fine for nano, but objects for BLE sense. Here's the diagnostic I get. Any help would be appreciated.

In file included from C:\Users\User\AppData\Local\Arduino15\libraries\TFT\src\utility\Adafruit_GFX.cpp:35:0:
C:\Users\User\AppData\Local\Arduino15\libraries\TFT\src\utility\glcdfont.c:3:10: fatal error: avr/io.h: No such file or directory
 #include <avr/io.h>
          ^~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1

I am using IDE 2.1.1

the Nano BLE uses a Nordic nRF52840 microcontroller
it looks as though TFT.h is designed for avr processors hence the error message
using the library manager Sketch>Include Library have a look for a suitable library

upload your code (using code tags </>)

1 Like

The documentation says it should work:

That's quite new.

Note:

So maybe it's not compatible with the new IDE?

Also:

Did you do that?

I saw that as well - could be at the time the code was implemented that was the case and is now not true
that is says it is no longer maintained indicates that it is probably out of date

Indeed - especially as v2 IDE is quite new ...

(see post #4)

Yes, I did that. Library was already installed.

Thanks for contributions so far. Your attention is appreciated. I was hoping to tap into the experience of someone who has joined a tft to a ble sense.

After my original post, I thought I would check for newer ble sense support. Whilst IDE was happily showing Arduino Nano 33 BLE Sense on the list, that has now gone! I am seeing the DEPRECATED option, and a straight 33 BLE, but BLE sense has disappeared from the drop list.

I thought i saw an alternative tft library source on youtube, but can't recall what it was. I would love to hear from anybody who is using BLE sense with any GUI. I would like to use the 1.8" TFT with ST7735 controller - but would be prepared to give up on that for a workable alternative.

Can't help but think whoever maintains the adafruit library will get it working with a 33BLE - but when?

As has been said above, the library is decribed as compatible with all flavours of Arduino.

Whilst I haven't tried reverting to IDE 1, I think that won't affect compatability with this library. Both 1 & 2 use the same libraries, don't they?

That would be Adafruit, surely?

https://forums.adafruit.com/

Also check the GitHub repository?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.