[MZ-SD2CMT] GitHub link

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

Re: [MZ-SD2CMT] GitHub link

Post by hlide » Tue Dec 04, 2018 3:42 pm

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: 23
Joined: Wed Oct 31, 2018 9:10 pm

Re: [MZ-SD2CMT] GitHub link

Post by tingo » Tue Dec 04, 2018 11:16 pm

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: 23
Joined: Wed Oct 31, 2018 9:10 pm

Re: [MZ-SD2CMT] GitHub link

Post by tingo » 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.
--
Torfinn

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

Re: [MZ-SD2CMT] GitHub link

Post by hlide » Wed Dec 05, 2018 11:35 am

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: 220
Joined: Thu Jan 25, 2018 9:31 pm

Re: [MZ-SD2CMT] GitHub link

Post by hlide » Sat Mar 30, 2019 1:41 pm

Made some commits and update the Readme.md.

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

Re: [MZ-SD2CMT] GitHub link

Post by hlide » Sat Mar 30, 2019 1:45 pm

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