i have Arduino uno

[color=#202124]Hi, how do I have problems with a code in the programming of my aruino uno? :confused:  :( [/color]

vumeter.txt (15.5 KB)

Welcome to the forum

Please follow the advice on posting code given in posting code

In particular note the advice to Auto format code in the IDE and to use code tags when posting code here as it prevents some combinations of characters in code being interpreted as HTML commands such as italics, bold or a smiley character, all of which render the code useless

@UKHeliBob, 15 kB is too much for inline posting :wink:

sterretje:
@UKHeliBob, 15 kB is too much for inline posting :wink:

Yes, but that is covered in the topic linked to, as is the advice about formatting code, posting details of the code, the source of any non standard libraries and posting any error messages

diego765:

[color=#202124]Hi, how do I have problems with a code in the programming of my aruino uno? :confused:  :( [/color]

Because you're missing a }, probably after void timedate().

Using autoformat, as mentioned by UKHeliBob would have revealed the missing }

Autoformatted

void timedate()
{

  ...
  ...

  void setup() {

The fact that void setup does not start at the beginning of a line after an autoformat indicates the problem. Adding a } to close the timedate function and a new autoformat

void timedate()
{
  ...
  ...
}

// VU METER CHARACTERS
byte v1[8] = {
  B00000, B00000, B00000, B00000, B00000, B00000, B00000, B11111
};
...
...
byte v8[8] = {
  B11111, B11111, B11111, B11111, B11111, B11111, B11111, B11111
};


void setup() {

And why do you have multiple setup() functions?

Dont understand :confused:

diego765:
Dont understand :confused:

Using Auto Format in the IDE does not change your code but it does tidy it up by indenting lines to show the code structure

Once Auto Formatted all function definitions, such as setup(), loop() etc should be on the left margin. When your code is Auto Formatted the setup() function definition does not start on the left margin. The usual cause of this is the fact that the previous function has more { than }. In your sketch, where does the timedate() end an where is its closing } ?

Tengo un problema que la programacion y no he resuelto en confuracion el reloj real es Ds3231 El reloj esta retrasado creo que hice algo mal muchas gracias y otro en sckech me marca un error fastled pero al final lo compila correctamente : smiley-confuso:

This is the English section. Please continue posting in English.

The clock is delayed I think I did something wrong thank you very much and another in sckech marks me fastled error but it compiles it correctly in the end

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