Page 6 of 6

Re: [MZ-SD2CMT] GitHub link

Posted: Tue Dec 04, 2018 3:42 pm
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.

Re: [MZ-SD2CMT] GitHub link

Posted: Tue Dec 04, 2018 11:16 pm
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.

Re: [MZ-SD2CMT] GitHub link

Posted: Wed Dec 05, 2018 11:09 am
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.

Re: [MZ-SD2CMT] GitHub link

Posted: Wed Dec 05, 2018 11:35 am
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.

Re: [MZ-SD2CMT] GitHub link

Posted: Sat Mar 30, 2019 1:41 pm
by hlide
Made some commits and update the Readme.md.

Re: [MZ-SD2CMT] GitHub link

Posted: Sat Mar 30, 2019 1:45 pm
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.