¿ªÔÆÌåÓý

Very basic question from newbie


 

Not sure if this project is still active? or has been superceeded but looks very interesting.

Downloaded the code (V1) but cannot get it to compile as I cannot? include "configuration.h" and? "tables.h" , cannot add them to the library?

Not really proficient enough to overcome this problem, always added libraries by using a zip file--can someone please point me in the right direction so I could at least get the code to compile?

Many Thanks

Peter


 

#include "configuration.h"
#include "tables.h"

What do you mean "cannot add them to the library"?? Would help if you could describe you build env ad included any log output.



On Friday, June 10, 2022, 06:25:03 AM PDT, Peter Bell via groups.io <jpeterbell@...> wrote:


Not sure if this project is still active? or has been superceeded but looks very interesting.

Downloaded the code (V1) but cannot get it to compile as I cannot? include "configuration.h" and? "tables.h" , cannot add them to the library?

Not really proficient enough to overcome this problem, always added libraries by using a zip file--can someone please point me in the right direction so I could at least get the code to compile?

Many Thanks

Peter


 

Thanks for your message,? been trying for a while without success.? This is the message I get?

Arduino: 1.8.13 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Pete\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Pete\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Pete\Documents\Arduino 17-7-18\libraries\ESP-Now\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10813 -build-path C:\Users\Pete\AppData\Local\Temp\arduino_build_683561 -warnings=none -build-cache C:\Users\Pete\AppData\Local\Temp\arduino_cache_410243 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -verbose C:\Users\Pete\AppData\Local\Temp\Temp1_ArduinoAtomicELS_V1.zip\AtomicELS\AtomicELS.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Pete\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Pete\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Pete\Documents\Arduino 17-7-18\libraries\ESP-Now\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10813 -build-path C:\Users\Pete\AppData\Local\Temp\arduino_build_683561 -warnings=none -build-cache C:\Users\Pete\AppData\Local\Temp\arduino_cache_410243 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -verbose C:\Users\Pete\AppData\Local\Temp\Temp1_ArduinoAtomicELS_V1.zip\AtomicELS\AtomicELS.ino

Using board 'mega' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Detecting libraries used...

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\Pete\\AppData\\Local\\Temp\\arduino_build_683561\\sketch\\AtomicELS.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Alternatives for configuration.h: []

ResolveLibrary(configuration.h)

? -> candidates: []

AtomicELS:69:10: fatal error: configuration.h: No such file or directory

?#include "configuration.h"

????????? ^~~~~~~~~~~~~~~~~

compilation terminated.

exit status 1

configuration.h: No such file or directory



















 

Based on my configuration, configuration.h and tables.h should be in the same directory as your .ino file - are they?

Mark
--

retired developer, woodworker hobbyist, uk


 

OK looks like you are using avr-g++ on a Windows machine and building for Arduino target.? First thing to try would be to move those components that are in C:\Program Files\... to a place on your hard drive that does not have a space in the pathname - c:\project\... or anything like that.? It might be that avr-g++ is barfing on the space in the pathname and that's why it can't find configuration.h.

Let us know!

- Jonathan



On Friday, June 10, 2022, 10:51:34 AM PDT, Peter Bell via groups.io <jpeterbell@...> wrote:


Thanks for your message,? been trying for a while without success.? This is the message I get?

Arduino: 1.8.13 (Windows 10), Board: "Arduino Mega or Mega 2560, ATmega2560 (Mega 2560)"

C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Pete\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Pete\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Pete\Documents\Arduino 17-7-18\libraries\ESP-Now\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10813 -build-path C:\Users\Pete\AppData\Local\Temp\arduino_build_683561 -warnings=none -build-cache C:\Users\Pete\AppData\Local\Temp\arduino_cache_410243 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -verbose C:\Users\Pete\AppData\Local\Temp\Temp1_ArduinoAtomicELS_V1.zip\AtomicELS\AtomicELS.ino

C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -hardware C:\Users\Pete\AppData\Local\Arduino15\packages -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -tools C:\Users\Pete\AppData\Local\Arduino15\packages -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Pete\Documents\Arduino 17-7-18\libraries\ESP-Now\libraries -fqbn=arduino:avr:mega:cpu=atmega2560 -ide-version=10813 -build-path C:\Users\Pete\AppData\Local\Temp\arduino_build_683561 -warnings=none -build-cache C:\Users\Pete\AppData\Local\Temp\arduino_cache_410243 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.arduinoOTA.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.arduinoOTA-1.3.0.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\arduinoOTA\1.3.0 -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc-7.3.0-atmel3.6.1-arduino7.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avrdude.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -prefs=runtime.tools.avrdude-6.3.0-arduino17.path=C:\Users\Pete\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17 -verbose C:\Users\Pete\AppData\Local\Temp\Temp1_ArduinoAtomicELS_V1.zip\AtomicELS\AtomicELS.ino

Using board 'mega' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Using core 'arduino' from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr

Detecting libraries used...

"C:\\Program Files (x86)\\Arduino\\hardware\\tools\\avr/bin/avr-g++" -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -Wno-error=narrowing -flto -w -x c++ -E -CC -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=10813 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_AVR "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\cores\\arduino" "-IC:\\Program Files (x86)\\Arduino\\hardware\\arduino\\avr\\variants\\mega" "C:\\Users\\Pete\\AppData\\Local\\Temp\\arduino_build_683561\\sketch\\AtomicELS.ino.cpp" -o nul -DARDUINO_LIB_DISCOVERY_PHASE

Alternatives for configuration.h: []

ResolveLibrary(configuration.h)

? -> candidates: []

AtomicELS:69:10: fatal error: configuration.h: No such file or directory

?#include "configuration.h"

????????? ^~~~~~~~~~~~~~~~~

compilation terminated.

exit status 1

configuration.h: No such file or directory



















 

Nailed it thanks!

Configuration.h and tables.h were in the same directory as the .ino file but there was also a data file which went to a prototypes.h.txt whic has nothing in it when opened.? Dumped the data file and it configured without any problems---great!

Ok so what do I do next?? Looks like I've got to order some bits like the nextion etc before I can go any further and see anything happen.
?
Anything else I can be advised of? ---it seems a very quiet group---has everyone got them working and moved on?.


 

Glad you got it sorted out.? ?Yes group is a bit quiet - I seem to remember Jon mentioning he was going to work on a CANBUS (which is an awesome idea BTW) so he might be buried in that project. I guess everyone else got theirs running and there are few if any bugs in it.

- Jonathan


 

On Fri, Jun 10, 2022 at 02:13 PM, Peter Bell wrote:
Ok so what do I do next?? Looks like I've got to order some bits like the nextion etc before I can go any further and see anything happen.
The Nextion NX4024K032 3.2-inch display that I used may no longer be available.? I just spent a few minutes looking and couldn't find any, anyway.? I have verified in the Nextion editor that the NX4832K035 3.5" version will work with the existing code, but will require re-scaling all the elements for the display to fill the screen.? What I have now works for me, so I haven't had any incentive to migrate to the bigger display.? I have a 3.5" display just in case, though.

-Jon


Gerritv
 

?is one of many stores on AliExpress that says they have stock.


Matt Harrington
 

That AliExpress version seems different (at least the pin connections are) - Anyone tried this version?

FYI, I added the 3.5" scaled up version of Jon's 3.2" in the files section - better for my fingers.

Matt H

?


Gerritv
 

You're correct, my apologies. You definitely don't want this connection type, should have looked closer.
?is the correct connection version and direct from Nextion Store.

Gerrit


Gerritv
 

If by mistake (ask me how I know) you end up with one of those displays, I think this is the interface.?

I tossed the one I bought 2 years ago, not enough pins on my designs or desire to get that working for anything.


 

Thanks for the helpful replies.

An NX4024K032_11 display has just arrived which I bought from IT Studio and hope to try in in demo mode( when i've learned how to do it) soon when my PC returns from having malware removed after it seized up.

Before the PC went sick I downloaded the Nextion editior and it would load another program I found and could edit it, however when I tried with the leadscrew file it refused to load declaring the file was faulty. Tried the file stored in this groups files with the same result so not sure what I did wrong but sure I'll get there.

Peter