I am trying to make scrolling text on LED matrix max7219 using mongoose.
This is the link for the code i am using
https://www.dropbox.com/sh/cblvjcp35bag4ua/AAAaSeT7t4ghknXrJXFJk1aqa?dl=0
and i keep getting build failed. i have tried the code on arduino and it works.
This is the link for the build log
https://www.dropbox.com/s/ness0udf6zc3d72/build.log?dl=0
can anyone help me to fix this build failed problem ?
Thx in advance
nliviu
April 21, 2019, 2:13pm
2
Your code is completely C/C++ wrong (define functions inside function).
Mongoose OS provides a limited Arduino compatibility layer and some compatible libraries. Search for arduino-
in https://github.com/mongoose-os-libs
md-parola and md-max72xx are already ported to Mongoose OS. However, there are some porting errors and if you need them, use my forks for the moment. Add the following lines in your mos.yml
- origin: https://github.com/nliviu/md-max72xx
version: master
- origin: https://github.com/nliviu/arduino-md-parola
version: master
4 - Don’t use the Arduino style setup
. Move the initialization code in mgos_app_init
.
5 - Some references:
Quick start
Develop in C
How to port an Arduino library
thx for your help. i’ll try fixing it.