Nano Every

Hi All,

Board Arduino Nano Every from Arduino.
Blink Sketch works OK.
A sketch that works OK with Pro mini errors with Nano


Arduino: 1.8.12 (Mac OS X), Board: “Arduino Nano Every, None (ATMEGA4809)”

exit status 1
Error compiling for board Arduino Nano Every.

Anybody got some code working on a Nano Every?

Regards
Peter

GPS_log_Oled_SD.ino (9.52 KB)

What was the error message? Please post it.

You have a lot of libraries included. It's likely that one or more of them has some code that is processor specific.

Hi aarg,
Thanks for reply.

Just this at the end.

exit status 1
Error compiling for board Arduino Nano Every.

Peter

fatal error: SSD1306_text.h: No such file or directory

C:\stuff\SW\Arduino\_Others\Download\GPS_log_Oled_SD\GPS_log_Oled_SD.ino:5:26: fatal error: SSD1306_text.h: No such file or directory

 #include <SSD1306_text.h>

                          ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

Hi,

Ok but it compiles ok for ProMini , uno etc.

Confused?

Please do this:

  • When you encounter an error, you’ll see a button on the right side of the orange bar “Copy error messages” in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button…
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum’s code tags markup to your reply.
  • Press “Ctrl + V”. This will paste the error between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

If the text exceeds the forum’s 9000 character limit, save it to a .txt file and post it as an attachment. If you click the “Reply” button here, you will see an “Attachments and other settings” link.

Where did you get the SSD1306_text library? The one I got from GitHub - mgcastro/SSD1306_text: Arduino Library for OLED Display (Text only) does not compile because the font is in PROGMEM but not marked 'const'.

After fixing the font it still fails on the Nano Every because it uses direct port manipulation instead of the Wire library and the port names are different on the Nano Every.

/Users/john/Documents/Arduino/libraries/SSD1306_text/SSD1306_text.cpp: In member function 'void SSD1306_text::clear()':
/Users/john/Documents/Arduino/libraries/SSD1306_text/SSD1306_text.cpp:100:24: error: 'TWBR' was not declared in this scope
   uint8_t twbrbackup = TWBR;     // save I2C bitrate
                        ^~~~

Hi Pert,
Compile file
Peter

Compile_Nano_Every.txt (46.7 KB)

Hi John,

From here https://www.instructables.com/id/GPS-Logger-Arduino-OLed-SD/

Compiles ok with UNO,Nan,Pro Mini Atmega 328 processors

But with "Low memory available, stability problems may occur".

Plan to use sketch but with a 2.4" ILI9341 display which will I think need more memory, hence the Nano Every.

Peter

Randcook:
Plan to use sketch but with a 2.4" ILI9341 display which will I think need more memory, hence the Nano Every.

So you don't need the SSD1306_text library? That should help.
Do you still get a compile error after switching over to the Adafruit_ILI9341 library?

In the process of removing oled bits and replace with tft commands