ThomasHeb / 4AxisFoamCutter

Arduino based CNC foam cutter with display and SD-Card
14 stars 8 forks source link

Creality Melzi Board V1.1.2 and compiler error #16

Open ThomasHeb opened 3 years ago

ThomasHeb commented 3 years ago

Request from youtube: Can I use it on the Creality Melzi Board V1.1.2?

https://www.google.com/url?sa=i&url=http%3A%2F%2Fsupport.th3dstudio.com%2Fhc%2Fproduct-information%2F3rd-party-control-boards%2Fcreality-boards%2Fcreality-melzi-board-connections-cr-10-ender-3-ender-5%2F&psig=AOvVaw0OMC9fWExkBZqnvcno8ZmD&ust=1624131132256000&source=images&cd=vfe&ved=0CAoQjRxqFwoTCJjNt4v2ofECFQAAAAAdAAAAABAD

What do I need to modify it needed?

========= Getting this error while compiling

lcd.cpp:1:10: fatal error: U8g2lib.h: No such file or directory

include

      ^~~~~~~~~~~

compilation terminated. exit status 1 U8g2lib.h: No such file or directory

ThomasHeb commented 3 years ago

To the Creality Melzi Board V1.1.2: you need to work with a arduino mega compatible board. this means an atmeal ATmega2560 or compatible chip must be used and the pinout should be similar. you need to compare the circuit diagram of this board with the arduino mega 2560 board first. next you need to test connections, starting with usb to arduino ide and all wiring on the board. this may lead to major changes in pinout definitions in the firmware. Connection of the buttons won't work (there are no pin out headers), but you may go with the version w/o buttons. and you need to check the display, too. So if you have experience in electronics, it is worth to go and share your findings. Otherwise I would recommend to to get an arduino mega and a ramps board

To the compiler error: you need to download the library from my githubfolder Download the libraries directly from this github: /03_Firmware/libraries and store in your ../Arduino/libraries/ folder (prefered, because updates of the original libraries may cause problems with grbl)

browse for the u8g2lib.h. it should be in this folder.