Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

Is there a file size limit for .ino files?

4 posters

Go down  Message [Page 1 of 1]

rjensen01



A year or two ago I built a project for scrolling text messages on 4 connected MAX7219 modules. It worked perfectly. I've been thinking of trying a few new ideas and hoped to avoid damaging my Arduino, or other components/modules by simulating my changes first.
I replicated the circuit easy enough, compiled and uploaded my code without issues. No errors were displayed, but the simulator didn't show any activity on the MAX7219's. I double checked everything, wiring, code, etc. Most of the code appears at the start/top of the file, but the actual scrolling routines are at the bottom, the last few lines. The thing that really stuck out to me was the code color went from black to red. I couldn't find anything, anywhere, as to what caused the color change. This change to red, happened in line 281, of 1166. If any one knows why, I'd appreciate your reply.

arcachofo

arcachofo

As far as I know there is no size limit for .ino files.

About the circuit not working, can you provide circuit and .ino files?

rjensen01



arcachofo wrote:As far as I know there is no size limit for .ino files.

About the circuit not working, can you provide circuit and .ino files?

I tried but keep seeing the error

Uploaded file is not valid: invalid attachment name.

arcachofo

arcachofo

Create a zip file with everything.

rjensen01



arcachofo wrote:Create a zip file with everything.

Thanks!

Please correct line 23, I left out a semicolon...

const int msgCount = 15; // number of messages to display

Attachments
Is there a file size limit for .ino files? AttachmentMAX7219.zip
You don't have permission to download attachments.
(6 Kb) Downloaded 6 times

arcachofo

arcachofo

There are some errors in your code:

- Error creating LedControl at line 36.
- Error reading ADC at line 1090.

Fizik_S

Fizik_S

Additionally:
Error in line 281:

Code:

B00000000,   //*

The /* characters are the beginning of a multiline comment. Anything below 281 lines will be a comment. I recommend putting the * character in quotation marks: "*"

In line 19 there is a link to the missing file "LedControl.h" in the archive

rjensen01



rjensen01 wrote:
arcachofo wrote:Create a zip file with everything.

Thanks!

Please correct line 23, I left out a semicolon...

const int msgCount = 15;       // number of messages to display


Sorry... I edited my last reply, you probably are unaware.
Please change that and try again.

arcachofo

arcachofo

There are still some errors in your code:

- Error creating LedControl at line 36 (or connection error in the circuit).
- Error reading ADC at line 1090.

rjensen01



rjensen01 wrote:
rjensen01 wrote:
arcachofo wrote:Create a zip file with everything.

Thanks!

Please correct line 23, I left out a semicolon...

const int msgCount = 15;       // number of messages to display


Sorry... I edited my last reply, you probably are unaware.
Please change that and try again.

I thank you for taking the time to help me!!

I made the change to line 281,as you suggested, and now the code beyond is no longer commented out.
I compiled, uploaded, no errors, but still not seeing anything on the LED modules.

I am unable to duplicate the errors that you received.

I have to go to work. I be back when I get off.

Best regards

Defran

Defran

Hi,

The library LedControl.h requires this basic configuration of connection:

36)   LedControl lc = LedControl(11, 13, 10, numDevices); // din, clk, cs

Change this in the program and in the scheme and it will work technically.

Another thing is that the program does what you want.

Good luck...!
Attachments
Is there a file size limit for .ino files? AttachmentMAX7219_2.zip
You don't have permission to download attachments.
(11 Kb) Downloaded 2 times

rjensen01



Defran wrote:Hi,

The library LedControl.h requires this basic configuration of connection:

36)   LedControl lc = LedControl(11, 13, 10, numDevices); // din, clk, cs

Change this in the program and in the scheme and it will work technically.

Another thing is that the program does what you want.

Good luck...!

Thanks Defran!

My original project was a Leonardo not a Uno. I should have checked the header file for possible changes, as my original project was a couple of years ago. I try to avoid using D13 as it causes the onboard LED to flash. Well, unless you want it to flash. D12 seems to work and the LED is not blinking... LOL

SimulIDE is a friggin' nice simulator!!! Awesome!

Oh, by the way, the circuit is working now! Perfectly!!

Feel free to share my work with anyone who may like to build on, change it around, etc. Just please encourage the inclusion of the original authors' credit.

Best regards all.
Attachments
Is there a file size limit for .ino files? AttachmentLED_8x8_module_x4_Scrolling_Msg.zip
You don't have permission to download attachments.
(6 Kb) Downloaded 4 times
Is there a file size limit for .ino files? AttachmentLED_8x8_module_x4_Scrolling_Msg_updated.zip
You don't have permission to download attachments.
(6 Kb) Downloaded 2 times



Last edited by rjensen01 on Sat Jun 24, 2023 2:29 pm; edited 1 time in total (Reason for editing : uodated ino file)

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum