RobotDyn Uno CH340/ATmega328PA

Getting an error compiling for board Ardunio Uno.

I have a RobotDyn Uno CH340/ATmega328PA attached is FC-16 DISY1s. Everytime I compile this code it gives the error, unsure how to compile for RobotDyn or if my code is structured properly.

#include <MD_Parola.h>
// https://github.com/MajicDesigns/MD_Parola
#include <MD_MAX72xx.h>
// GitHub - MajicDesigns/MD_MAX72XX: LED Matrix Library
#include <SPI.h>

#define MAX_DEVICES 4 //Number of modules connected
#define CLK_PIN 13 // SPI SCK pin on UNO
#define DATA_PIN 11 // SPI MOSI pin on UNO
#define CS_PIN 10 // connected to pin 10 on Uno
#define HARDWARE_TYPE MD_MAX72XX::PAROLA_HW
MD_Parola P = MD_Parola(HARDWARE_TYPE, CS_PIN, MAX_DEVICES); //SPI Config

void setup()
{

P.begin(); // Start Parola

// textEffect_t scrollEffect = PA_SCROLL_LEFT;
// textPosition_t scrollAlign = PA_LEFT;

// int scrollPause = 0; // ms of pause after finished displaying message
// configure Parola
// P.displayText(curMessage, scrollAlign, scrollSpeed, scrollPause, scrollEffect);
int scrollSpeed; // used to set text scroll speed in Parola at start

#define BUF_SIZE 75 // How manay characters you can have in the message
char curMessage [BUF_SIZE] = { “HACKER” }; // used to hold the message
}
void loop()
{
textEffect_t scrollEffect = PA_SCROLL_LEFT;
textPosition_t scrollAlign = PA_LEFT;

int scrollPause = 0; // ms of pause after finished displaying message
P.print(“test”);
}

Please do this:

  • When you encounter an error, you’ll see a button on the right side of the orange bar “Copy error messages” in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button…
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum’s code tags markup to your reply.
  • Press “Ctrl + V”. This will paste the error between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

If the text exceeds the forum’s 9000 character limit, save it to a .txt file and post it as an attachment. If you click the “Reply” button here, you will see an “Attachments and other settings” link that will allow you to make the attachment.

  int scrollSpeed;   // used to set text scroll speed in Parola at start
#define BUF_SIZE 75  // How manay characters you can have in the message
   char curMessage [BUF_SIZE] = { "HACKER" };  // used to hold the message

The string, curMessage, and the int scrollSpeed that you declare in setup() will not exist (they are out of scope) outside of setup.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.