[MZ-SD2CMT] GitHub link

hlide
Posts: 681
Joined: Thu Jan 25, 2018 9:31 pm

Re: [MZ-SD2CMT] GitHub link

Post by hlide »

No idea. Arduino IDE is doing something with the .ino file so the order of functions is not an issue unlike in a true C++ file. So I wouldn't expect such an error.

By the way, I'm using Visual Studio and an Arduino plugin so I can benefit all the goodies like refactoring and smart c++ checking. I'll try with Arduino IDE when I have time.
User avatar
tingo
Posts: 39
Joined: Wed Oct 31, 2018 9:10 pm

Re: [MZ-SD2CMT] GitHub link

Post by tingo »

Back home I have Arduino IDE 1.8.5. I checked out a fresh copy from the repository:

Code: Select all

tingo@kg-core1$ git remote -v
origin	https://github.com/SHARPENTIERS/MZ-SD2CMT.git (fetch)
origin	https://github.com/SHARPENTIERS/MZ-SD2CMT.git (push)
tingo@kg-core1$ git rev-parse --short HEAD
312c46b
and it compiles without trouble:

Code: Select all

Sketch uses 18996 bytes (7%) of program storage space. Maximum is 253952 bytes.
Global variables use 1641 bytes (20%) of dynamic memory, leaving 6551 bytes for local variables. Maximum is 8192 bytes.
and it uploads and works too. Very strange. I'll have to look into this a bit more tomorrow.
--
Torfinn
User avatar
tingo
Posts: 39
Joined: Wed Oct 31, 2018 9:10 pm

Re: [MZ-SD2CMT] GitHub link

Post by tingo »

ok, after more testing: Arduino IDE 1.8.7 and 1.8.6 gives error messages. Arduino IDE 1.8.5 or earlier works.
--
Torfinn
hlide
Posts: 681
Joined: Thu Jan 25, 2018 9:31 pm

Re: [MZ-SD2CMT] GitHub link

Post by hlide »

tingo wrote: Wed Dec 05, 2018 11:09 am ok, after more testing: Arduino IDE 1.8.7 and 1.8.6 gives error messages. Arduino IDE 1.8.5 or earlier works.
Are those errors just regarding declaration order? Adding some forward declarations should fix them.
hlide
Posts: 681
Joined: Thu Jan 25, 2018 9:31 pm

Re: [MZ-SD2CMT] GitHub link

Post by hlide »

Made some commits and update the Readme.md.
hlide
Posts: 681
Joined: Thu Jan 25, 2018 9:31 pm

Re: [MZ-SD2CMT] GitHub link

Post by hlide »

I noticed I needed to plug USB because LCD16x2 was getting too more power and prevented SD card from working properly without the USB powering. For this reason, I decided to try the I²C 128x64 OLED since the input was solved by using an IR remote. After removing LCD16x2, now the MZ-700 can power the MZ-SD²CMT without the USB.
Post Reply